src/Generator/Analyzer/Steps/ResolveModuleNames.php
protected function addOrInjectMenuNamePrefix($moduleId)
    {
        $module = $this->data->rawData['modules'][ $moduleId ];
        $prefix = $module['parent_names']['menu'];

        // mark so we don't prefix it twice
        $this->modulePrefixedMenu[$moduleId] = true;

        // this is always a simple prefix
        $this->data->rawData['modules'][ $moduleId ]['prefixed_name'] =
            $this->addPrefix(
                array_get($module, 'prefixed_name') ?: $module['name'],
                $prefix
            );
    }
protected function addOrInjectMenuNamePrefix($moduleId)
    {
        $module = $this->data->rawData['modules'][ $moduleId ];
        $prefix = $module['parent_names']['menu'];

        // mark so we don't prefix it twice
        $this->modulePrefixedMenu[$moduleId] = true;

        // this is always a simple prefix
        $this->data->rawData['modules'][ $moduleId ]['prefixed_name'] =
            $this->addPrefix(
                array_get($module, 'prefixed_name') ?: $module['name'],
                $prefix
            );
    }
protected function addOrInjectMenuNamePrefix ( $ moduleId ) { $ module = $ this -> data -> rawData [ 'modules' ] [ $ moduleId ] ; $ prefix = $ module [ 'parent_names' ] [ 'menu' ] ; // mark so we don't prefix it twice $ this -> modulePrefixedMenu [ $ moduleId ] = true ; // this is always a simple prefix $ this -> data -> rawData [ 'modules' ] [ $ moduleId ] [ 'prefixed_name' ] = $ this -> addPrefix ( array_get ( $ module , 'prefixed_name' ) ? : $ module [ 'name' ] , $ prefix ) ; }
Prefixes module name with menu name, keeping into account whether
other, higher-level prefixes have been applied

@param int $moduleId
Prefixes module name with menu name keeping into account whether other higher - level prefixes have been applied