original_string: protected function _getAllowedActions()
      {
          $actions = $this->_action()->getConfig('scaffold.actions');
          if ($actions === null) {
              $actions = array_keys($this->_crud()->getConfig('actions'));
          }
  
          $extraActions = $this->_action()->getConfig('scaffold.extra_actions') ?: [];
  
          $allActions = array_merge(
              $this->_normalizeActions($actions),
              $this->_normalizeActions($extraActions)
          );
  
          $blacklist = (array)$this->_action()->getConfig('scaffold.actions_blacklist');
          $blacklist = array_combine($blacklist, $blacklist);
          foreach ($this->_crud()->getConfig('actions') as $action => $config) {
              if ($config['className'] === 'Crud.Lookup') {
                  $blacklist[$action] = $action;
              }
          }
  
          return array_diff_key($allActions, $blacklist);
      }
code: protected function _getAllowedActions()
      {
          $actions = $this->_action()->getConfig('scaffold.actions');
          if ($actions === null) {
              $actions = array_keys($this->_crud()->getConfig('actions'));
          }
  
          $extraActions = $this->_action()->getConfig('scaffold.extra_actions') ?: [];
  
          $allActions = array_merge(
              $this->_normalizeActions($actions),
              $this->_normalizeActions($extraActions)
          );
  
          $blacklist = (array)$this->_action()->getConfig('scaffold.actions_blacklist');
          $blacklist = array_combine($blacklist, $blacklist);
          foreach ($this->_crud()->getConfig('actions') as $action => $config) {
              if ($config['className'] === 'Crud.Lookup') {
                  $blacklist[$action] = $action;
              }
          }
  
          return array_diff_key($allActions, $blacklist);
      }
code_tokens: protected function _getAllowedActions ( ) { $ actions = $ this -> _action ( ) -> getConfig ( 'scaffold.actions' ) ; if ( $ actions === null ) { $ actions = array_keys ( $ this -> _crud ( ) -> getConfig ( 'actions' ) ) ; } $ extraActions = $ this -> _action ( ) -> getConfig ( 'scaffold.extra_actions' ) ? : [ ] ; $ allActions = array_merge ( $ this -> _normalizeActions ( $ actions ) , $ this -> _normalizeActions ( $ extraActions ) ) ; $ blacklist = ( array ) $ this -> _action ( ) -> getConfig ( 'scaffold.actions_blacklist' ) ; $ blacklist = array_combine ( $ blacklist , $ blacklist ) ; foreach ( $ this -> _crud ( ) -> getConfig ( 'actions' ) as $ action => $ config ) { if ( $ config [ 'className' ] === 'Crud.Lookup' ) { $ blacklist [ $ action ] = $ action ; } } return array_diff_key ( $ allActions , $ blacklist ) ; }
docstring: Returns a list of action configs that are allowed to be shown
  
  @return array
docstring_tokens: Returns a list of action configs that are allowed to be shown