src/Charcoal/Admin/Widget/TableWidget.php
protected function createCollectionLoader()
    {
        $loader = $this->createCollectionLoaderFromTrait();

        $mainMenu = filter_input(INPUT_GET, 'main_menu', FILTER_SANITIZE_STRING);
        if ($mainMenu) {
            $loader->setCallback(function (&$obj) use ($mainMenu) {
                if (!$obj['main_menu']) {
                    $obj['main_menu'] = $mainMenu;
                }
            });
        }

        return $loader;
    }
protected function createCollectionLoader()
    {
        $loader = $this->createCollectionLoaderFromTrait();

        $mainMenu = filter_input(INPUT_GET, 'main_menu', FILTER_SANITIZE_STRING);
        if ($mainMenu) {
            $loader->setCallback(function (&$obj) use ($mainMenu) {
                if (!$obj['main_menu']) {
                    $obj['main_menu'] = $mainMenu;
                }
            });
        }

        return $loader;
    }
protected function createCollectionLoader ( ) { $ loader = $ this -> createCollectionLoaderFromTrait ( ) ; $ mainMenu = filter_input ( INPUT_GET , 'main_menu' , FILTER_SANITIZE_STRING ) ; if ( $ mainMenu ) { $ loader -> setCallback ( function ( & $ obj ) use ( $ mainMenu ) { if ( ! $ obj [ 'main_menu' ] ) { $ obj [ 'main_menu' ] = $ mainMenu ; } } ) ; } return $ loader ; }
Create a collection loader.

@return CollectionLoader
Create a collection loader .