Crud\Action\BaseAction::_deriveResourceName PHP Method

_deriveResourceName() protected method

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