dev/src/ComponentManager.php
public function componentsManifest($componentId = null)
    {
        $manifest = $this->manifest ?: $this->loadManifest;
        $modules = $manifest['modules'];

        if ($componentId) {
            $modules = array_filter($modules, function ($module) use ($componentId) {
                return $module['id'] === $componentId;
            });
        }

        return $modules;
    }
public function componentsManifest($componentId = null)
    {
        $manifest = $this->manifest ?: $this->loadManifest;
        $modules = $manifest['modules'];

        if ($componentId) {
            $modules = array_filter($modules, function ($module) use ($componentId) {
                return $module['id'] === $componentId;
            });
        }

        return $modules;
    }
public function componentsManifest ( $ componentId = null ) { $ manifest = $ this -> manifest ? : $ this -> loadManifest ; $ modules = $ manifest [ 'modules' ] ; if ( $ componentId ) { $ modules = array_filter ( $ modules , function ( $ module ) use ( $ componentId ) { return $ module [ 'id' ] === $ componentId ; } ) ; } return $ modules ; }
Get all component's manifest.json data.

@param string $componentId [optional] If set, only this component's data
will be returned.
@return array[]
Get all component s manifest . json data .