public function onCategoriesOptionsCallback()
    {
        /** @var Input $input */
        $input = $this->framework->getAdapter(Input::class);

        // Do not generate the options for other views than listings
        if ($input->get('act') && $input->get('act') !== 'select') {
            return [];
        }

        return $this->generateOptionsRecursively();
    }
public function onCategoriesOptionsCallback()
    {
        /** @var Input $input */
        $input = $this->framework->getAdapter(Input::class);

        // Do not generate the options for other views than listings
        if ($input->get('act') && $input->get('act') !== 'select') {
            return [];
        }

        return $this->generateOptionsRecursively();
    }
public function onCategoriesOptionsCallback ( ) { /** @var Input $input */ $ input = $ this -> framework -> getAdapter ( Input :: class ) ; // Do not generate the options for other views than listings if ( $ input -> get ( 'act' ) && $ input -> get ( 'act' ) !== 'select' ) { return [ ] ; } return $ this -> generateOptionsRecursively ( ) ; }
On categories options callback

@return array
On categories options callback