source/php/ModuleManager.php
public function getIcon(string $path, $class) : string
    {
        if (file_exists($path . '/assets/icon.svg')) {
            return file_get_contents($path . '/assets/icon.svg');
        }

        // If fail to load (may happen on some systems) TODO: Make this more fancy
        if (file_exists($path . preg_replace('/\s+/', '', ucwords($class->nameSingular)). '/assets/icon.svg')) {
            return file_get_contents($path . preg_replace('/\s+/', '', ucwords($class->nameSingular)). '/assets/icon.svg');
        }

        return '';
    }
public function getIcon(string $path, $class) : string
    {
        if (file_exists($path . '/assets/icon.svg')) {
            return file_get_contents($path . '/assets/icon.svg');
        }

        // If fail to load (may happen on some systems) TODO: Make this more fancy
        if (file_exists($path . preg_replace('/\s+/', '', ucwords($class->nameSingular)). '/assets/icon.svg')) {
            return file_get_contents($path . preg_replace('/\s+/', '', ucwords($class->nameSingular)). '/assets/icon.svg');
        }

        return '';
    }
public function getIcon ( string $ path , $ class ) : string { if ( file_exists ( $ path . '/assets/icon.svg' ) ) { return file_get_contents ( $ path . '/assets/icon.svg' ) ; } // If fail to load (may happen on some systems) TODO: Make this more fancy if ( file_exists ( $ path . preg_replace ( '/\s+/' , '' , ucwords ( $ class -> nameSingular ) ) . '/assets/icon.svg' ) ) { return file_get_contents ( $ path . preg_replace ( '/\s+/' , '' , ucwords ( $ class -> nameSingular ) ) . '/assets/icon.svg' ) ; } return '' ; }
Get bundeled icon
@param  string $path Path to module folder
@return string
Get bundeled icon