original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: On categories options callback
  
  @return array
docstring_tokens: On categories options callback