original_string: protected function _getControllerActions()
      {
          $table = $entity = [];
  
          $actions = $this->_getAllowedActions();
          foreach ($actions as $actionName => $config) {
              list($scope, $actionConfig) = $this->_getControllerActionConfiguration($actionName, $config);
              ${$scope}[$actionName] = $actionConfig;
          }
  
          $actionBlacklist = [];
          $groups = $this->_action()->getConfig('scaffold.action_groups') ?: [];
          foreach ($groups as $group) {
              $group = Hash::normalize($group);
              foreach ($group as $actionName => $config) {
                  if (isset($table[$actionName]) || isset($entity[$actionName])) {
                      continue;
                  }
                  if ($config === null) {
                      $config = [];
                  }
                  list($scope, $actionConfig) = $this->_getControllerActionConfiguration($actionName, $config);
                  $realAction = Hash::get($actionConfig, 'url.action', $actionName);
                  if (!isset(${$scope}[$realAction])) {
                      continue;
                  }
  
                  $actionBlacklist[] = $realAction;
                  ${$scope}[$actionName] = $actionConfig;
              }
          }
  
          foreach ($actionBlacklist as $actionName) {
              unset($table[$actionName]);
              unset($entity[$actionName]);
          }
  
          return compact('table', 'entity');
      }
code: protected function _getControllerActions()
      {
          $table = $entity = [];
  
          $actions = $this->_getAllowedActions();
          foreach ($actions as $actionName => $config) {
              list($scope, $actionConfig) = $this->_getControllerActionConfiguration($actionName, $config);
              ${$scope}[$actionName] = $actionConfig;
          }
  
          $actionBlacklist = [];
          $groups = $this->_action()->getConfig('scaffold.action_groups') ?: [];
          foreach ($groups as $group) {
              $group = Hash::normalize($group);
              foreach ($group as $actionName => $config) {
                  if (isset($table[$actionName]) || isset($entity[$actionName])) {
                      continue;
                  }
                  if ($config === null) {
                      $config = [];
                  }
                  list($scope, $actionConfig) = $this->_getControllerActionConfiguration($actionName, $config);
                  $realAction = Hash::get($actionConfig, 'url.action', $actionName);
                  if (!isset(${$scope}[$realAction])) {
                      continue;
                  }
  
                  $actionBlacklist[] = $realAction;
                  ${$scope}[$actionName] = $actionConfig;
              }
          }
  
          foreach ($actionBlacklist as $actionName) {
              unset($table[$actionName]);
              unset($entity[$actionName]);
          }
  
          return compact('table', 'entity');
      }
code_tokens: protected function _getControllerActions ( ) { $ table = $ entity = [ ] ; $ actions = $ this -> _getAllowedActions ( ) ; foreach ( $ actions as $ actionName => $ config ) { list ( $ scope , $ actionConfig ) = $ this -> _getControllerActionConfiguration ( $ actionName , $ config ) ; $ { $ scope } [ $ actionName ] = $ actionConfig ; } $ actionBlacklist = [ ] ; $ groups = $ this -> _action ( ) -> getConfig ( 'scaffold.action_groups' ) ? : [ ] ; foreach ( $ groups as $ group ) { $ group = Hash :: normalize ( $ group ) ; foreach ( $ group as $ actionName => $ config ) { if ( isset ( $ table [ $ actionName ] ) || isset ( $ entity [ $ actionName ] ) ) { continue ; } if ( $ config === null ) { $ config = [ ] ; } list ( $ scope , $ actionConfig ) = $ this -> _getControllerActionConfiguration ( $ actionName , $ config ) ; $ realAction = Hash :: get ( $ actionConfig , 'url.action' , $ actionName ) ; if ( ! isset ( $ { $ scope } [ $ realAction ] ) ) { continue ; } $ actionBlacklist [ ] = $ realAction ; $ { $ scope } [ $ actionName ] = $ actionConfig ; } } foreach ( $ actionBlacklist as $ actionName ) { unset ( $ table [ $ actionName ] ) ; unset ( $ entity [ $ actionName ] ) ; } return compact ( 'table' , 'entity' ) ; }
docstring: Returns groupings of action types on the scaffolded view
  Includes derived actions from scaffold.action_groups
  
  @return array
docstring_tokens: Returns groupings of action types on the scaffolded view Includes derived actions from scaffold . action_groups