src/Core/Manifest/Module.php
public function getShortName()
    {
        // If installed in the root directory we need to infer from composer
        if ($this->path === $this->basePath && $this->composerData) {
            // Sometimes we customise installer name
            if (isset($this->composerData['extra']['installer-name'])) {
                return $this->composerData['extra']['installer-name'];
            }

            // Strip from full composer name
            $composerName = $this->getComposerName();
            if ($composerName) {
                list(, $name) = explode('/', $composerName);
                return $name;
            }
        }

        // Base name of directory
        return basename($this->path);
    }
public function getShortName()
    {
        // If installed in the root directory we need to infer from composer
        if ($this->path === $this->basePath && $this->composerData) {
            // Sometimes we customise installer name
            if (isset($this->composerData['extra']['installer-name'])) {
                return $this->composerData['extra']['installer-name'];
            }

            // Strip from full composer name
            $composerName = $this->getComposerName();
            if ($composerName) {
                list(, $name) = explode('/', $composerName);
                return $name;
            }
        }

        // Base name of directory
        return basename($this->path);
    }
public function getShortName ( ) { // If installed in the root directory we need to infer from composer if ( $ this -> path === $ this -> basePath && $ this -> composerData ) { // Sometimes we customise installer name if ( isset ( $ this -> composerData [ 'extra' ] [ 'installer-name' ] ) ) { return $ this -> composerData [ 'extra' ] [ 'installer-name' ] ; } // Strip from full composer name $ composerName = $ this -> getComposerName ( ) ; if ( $ composerName ) { list ( , $ name ) = explode ( '/' , $ composerName ) ; return $ name ; } } // Base name of directory return basename ( $ this -> path ) ; }
Gets "short" name of this module. This is the base directory this module
is installed in.

If installed in root, this will be generated from the composer name instead

@return string
Gets short name of this module . This is the base directory this module is installed in .