public static function getList(): array
    {
        $result = [];
        $path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Types';
        $dir = new Folder($path);

        $files = $dir->find('.*\.php');

        if (empty($files)) {
            return $result;
        }

        foreach ($files as $file) {
            $name = str_replace('.php', '', $file);
            $value = Inflector::underscore($name);
            $result[$value] = $name;
        }

        return $result;
    }
public static function getList(): array
    {
        $result = [];
        $path = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Types';
        $dir = new Folder($path);

        $files = $dir->find('.*\.php');

        if (empty($files)) {
            return $result;
        }

        foreach ($files as $file) {
            $name = str_replace('.php', '', $file);
            $value = Inflector::underscore($name);
            $result[$value] = $name;
        }

        return $result;
    }
public static function getList ( ) : array { $ result = [ ] ; $ path = dirname ( __FILE__ ) . DIRECTORY_SEPARATOR . 'Types' ; $ dir = new Folder ( $ path ) ; $ files = $ dir -> find ( '.*\.php' ) ; if ( empty ( $ files ) ) { return $ result ; } foreach ( $ files as $ file ) { $ name = str_replace ( '.php' , '' , $ file ) ; $ value = Inflector :: underscore ( $ name ) ; $ result [ $ value ] = $ name ; } return $ result ; }
Menu item types getter.

@return mixed[]
Menu item types getter .