original_string: protected function _getPageVariables()
      {
          $table = $this->_table();
          $controller = $this->_controller();
          $scope = $this->_action()->getConfig('scope');
  
          $data = [
              'modelClass' => $controller->modelClass,
              'singularHumanName' => Inflector::humanize(Inflector::underscore(Inflector::singularize($controller->modelClass))),
              'pluralHumanName' => Inflector::humanize(Inflector::underscore($controller->getName())),
              'singularVar' => Inflector::singularize($controller->getName()),
              'pluralVar' => Inflector::variable($controller->getName()),
          ];
  
          try {
              $data += [
                  'modelSchema' => $table->getSchema(),
                  'displayField' => $table->getDisplayField(),
                  'primaryKey' => $table->getPrimaryKey(),
              ];
          } catch (Exception $e) {
              // May be empty if there is no table object for the action
          }
  
          if ($scope === 'entity') {
              $data += [
                  'primaryKeyValue' => $this->_primaryKeyValue()
              ];
          }
  
          return $data;
      }
code: protected function _getPageVariables()
      {
          $table = $this->_table();
          $controller = $this->_controller();
          $scope = $this->_action()->getConfig('scope');
  
          $data = [
              'modelClass' => $controller->modelClass,
              'singularHumanName' => Inflector::humanize(Inflector::underscore(Inflector::singularize($controller->modelClass))),
              'pluralHumanName' => Inflector::humanize(Inflector::underscore($controller->getName())),
              'singularVar' => Inflector::singularize($controller->getName()),
              'pluralVar' => Inflector::variable($controller->getName()),
          ];
  
          try {
              $data += [
                  'modelSchema' => $table->getSchema(),
                  'displayField' => $table->getDisplayField(),
                  'primaryKey' => $table->getPrimaryKey(),
              ];
          } catch (Exception $e) {
              // May be empty if there is no table object for the action
          }
  
          if ($scope === 'entity') {
              $data += [
                  'primaryKeyValue' => $this->_primaryKeyValue()
              ];
          }
  
          return $data;
      }
code_tokens: protected function _getPageVariables ( ) { $ table = $ this -> _table ( ) ; $ controller = $ this -> _controller ( ) ; $ scope = $ this -> _action ( ) -> getConfig ( 'scope' ) ; $ data = [ 'modelClass' => $ controller -> modelClass , 'singularHumanName' => Inflector :: humanize ( Inflector :: underscore ( Inflector :: singularize ( $ controller -> modelClass ) ) ) , 'pluralHumanName' => Inflector :: humanize ( Inflector :: underscore ( $ controller -> getName ( ) ) ) , 'singularVar' => Inflector :: singularize ( $ controller -> getName ( ) ) , 'pluralVar' => Inflector :: variable ( $ controller -> getName ( ) ) , ] ; try { $ data += [ 'modelSchema' => $ table -> getSchema ( ) , 'displayField' => $ table -> getDisplayField ( ) , 'primaryKey' => $ table -> getPrimaryKey ( ) , ] ; } catch ( Exception $ e ) { // May be empty if there is no table object for the action } if ( $ scope === 'entity' ) { $ data += [ 'primaryKeyValue' => $ this -> _primaryKeyValue ( ) ] ; } return $ data ; }
docstring: Publish fairly static variables needed in the view
  
  @return array
docstring_tokens: Publish fairly static variables needed in the view