dev/src/ComponentManager.php
public function componentsExtra($componentId = null)
    {
        $components = $this->components ?: $this->loadComponents();

        array_walk($components, function (&$component) {
            $name = $component['composer']['name'];
            $component = $component['composer']['extra']['component'];
            $component['displayName'] = $name;
        });

        return $componentId
            ? [$componentId => $components[$componentId]]
            : $components;
    }
public function componentsExtra($componentId = null)
    {
        $components = $this->components ?: $this->loadComponents();

        array_walk($components, function (&$component) {
            $name = $component['composer']['name'];
            $component = $component['composer']['extra']['component'];
            $component['displayName'] = $name;
        });

        return $componentId
            ? [$componentId => $components[$componentId]]
            : $components;
    }
public function componentsExtra ( $ componentId = null ) { $ components = $ this -> components ? : $ this -> loadComponents ( ) ; array_walk ( $ components , function ( & $ component ) { $ name = $ component [ 'composer' ] [ 'name' ] ; $ component = $ component [ 'composer' ] [ 'extra' ] [ 'component' ] ; $ component [ 'displayName' ] = $ name ; } ) ; return $ componentId ? [ $ componentId => $ components [ $ componentId ] ] : $ components ; }
Get all component's composer.json extra data.

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