public function groupName(string $name): void
    {
        $parts = array_map(
            function ($n) {
                return Inflector::humanize(Inflector::underscore(str_replace('Controller', '', $n)));
            },
            explode('\\', $name)
        );

        /*
        removes empty array entries
         */
        $parts = array_filter($parts);

        /*
        get just the controller and plugin names
         */
        $parts = array_slice($parts, -2);

        $name = implode(' :: ', $parts);

        $this->set('groupName', $name);
    }
public function groupName(string $name): void
    {
        $parts = array_map(
            function ($n) {
                return Inflector::humanize(Inflector::underscore(str_replace('Controller', '', $n)));
            },
            explode('\\', $name)
        );

        /*
        removes empty array entries
         */
        $parts = array_filter($parts);

        /*
        get just the controller and plugin names
         */
        $parts = array_slice($parts, -2);

        $name = implode(' :: ', $parts);

        $this->set('groupName', $name);
    }
public function groupName ( string $ name ) : void { $ parts = array_map ( function ( $ n ) { return Inflector :: humanize ( Inflector :: underscore ( str_replace ( 'Controller' , '' , $ n ) ) ) ; } , explode ( '\\' , $ name ) ) ; /*
        removes empty array entries
         */ $ parts = array_filter ( $ parts ) ; /*
        get just the controller and plugin names
         */ $ parts = array_slice ( $ parts , - 2 ) ; $ name = implode ( ' :: ' , $ parts ) ; $ this -> set ( 'groupName' , $ name ) ; }
Method that converts Controller
full name to human readable label
@param  string $name Controller full name
@return void
Method that converts Controller full name to human readable label