Crud\Traits\ViewVarTrait::_deriveViewVar PHP Метод

_deriveViewVar() защищенный Метод

Actions working on a single entity will use singular name, and actions working on a full table will use plural name
protected _deriveViewVar ( ) : string
Результат string
    protected function _deriveViewVar()
    {
        if ($this->scope() === 'table') {
            return Inflector::variable($this->_controller()->name);
        }
        if ($this->scope() === 'entity') {
            return Inflector::variable(Inflector::singularize($this->_controller()->name));
        }
        throw new Exception('Unknown action scope: ' . $this->scope());
    }