protected function _controllerName()
    {
        $inflections = [
            'underscore',
            'humanize',
        ];

        if ($this->_action()->scope() === 'entity') {
            $inflections[] = 'singularize';
        }

        $baseName = $this->_controller()->getName();
        foreach ($inflections as $inflection) {
            $baseName = Inflector::$inflection($baseName);
        }

        return $baseName;
    }
protected function _controllerName()
    {
        $inflections = [
            'underscore',
            'humanize',
        ];

        if ($this->_action()->scope() === 'entity') {
            $inflections[] = 'singularize';
        }

        $baseName = $this->_controller()->getName();
        foreach ($inflections as $inflection) {
            $baseName = Inflector::$inflection($baseName);
        }

        return $baseName;
    }
protected function _controllerName ( ) { $ inflections = [ 'underscore' , 'humanize' , ] ; if ( $ this -> _action ( ) -> scope ( ) === 'entity' ) { $ inflections [ ] = 'singularize' ; } $ baseName = $ this -> _controller ( ) -> getName ( ) ; foreach ( $ inflections as $ inflection ) { $ baseName = Inflector :: $ inflection ( $ baseName ) ; } return $ baseName ; }
Get the controller name based on the Crud Action scope

@return string
Get the controller name based on the Crud Action scope