PHP code example of rfuehricht / recordmodules

1. Go to this page and download the library: Download rfuehricht/recordmodules library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rfuehricht / recordmodules example snippets


use Rfuehricht\Recordmodules\Event\BeforePidsLoadedEvent;

final class ModifyRecordModulesPids
{
    public function __invoke(BeforePidsLoadedEvent $event): void
    {
        if ($event->getTable() === 'tx_news_domain_model_news') {
            $event->setPids([123, 124, 125]);
        }
    }
}