src/Action/BaseAction.php
protected function _deriveResourceName()
    {
        $inflectionType = $this->getConfig('inflection');

        if ($inflectionType === null) {
            $inflectionType = $this->scope() === 'entity' ? 'singular' : 'plural';
        }

        if ($inflectionType === 'singular') {
            return strtolower(Inflector::humanize(
                Inflector::singularize(Inflector::underscore($this->_table()->getAlias()))
            ));
        }

        return strtolower(Inflector::humanize(Inflector::underscore($this->_table()->getAlias())));
    }
protected function _deriveResourceName()
    {
        $inflectionType = $this->getConfig('inflection');

        if ($inflectionType === null) {
            $inflectionType = $this->scope() === 'entity' ? 'singular' : 'plural';
        }

        if ($inflectionType === 'singular') {
            return strtolower(Inflector::humanize(
                Inflector::singularize(Inflector::underscore($this->_table()->getAlias()))
            ));
        }

        return strtolower(Inflector::humanize(Inflector::underscore($this->_table()->getAlias())));
    }
protected function _deriveResourceName ( ) { $ inflectionType = $ this -> getConfig ( 'inflection' ) ; if ( $ inflectionType === null ) { $ inflectionType = $ this -> scope ( ) === 'entity' ? 'singular' : 'plural' ; } if ( $ inflectionType === 'singular' ) { return strtolower ( Inflector :: humanize ( Inflector :: singularize ( Inflector :: underscore ( $ this -> _table ( ) -> getAlias ( ) ) ) ) ) ; } return strtolower ( Inflector :: humanize ( Inflector :: underscore ( $ this -> _table ( ) -> getAlias ( ) ) ) ) ; }
Derive resource name

@return string
Derive resource name