public static function getComponentWithIdentifier(string $identifier)
    {
        $components = self::getComponents();
        foreach ($components as $component) {
            if (empty($component->getIdentifier())) {
                continue;
            }
            
            if ($component->getIdentifier() == $identifier) {
                return $component;
            }
        }
        
        return null;
    }
public static function getComponentWithIdentifier(string $identifier)
    {
        $components = self::getComponents();
        foreach ($components as $component) {
            if (empty($component->getIdentifier())) {
                continue;
            }
            
            if ($component->getIdentifier() == $identifier) {
                return $component;
            }
        }
        
        return null;
    }
public static function getComponentWithIdentifier ( string $ identifier ) { $ components = self :: getComponents ( ) ; foreach ( $ components as $ component ) { if ( empty ( $ component -> getIdentifier ( ) ) ) { continue ; } if ( $ component -> getIdentifier ( ) == $ identifier ) { return $ component ; } } return null ; }
Get a component with the given identifier from one of the configured addons.

@param string $identifier
Identifier of the component to get.

@return Component Component with the given identifier from one of the configured addons.
Get a component with the given identifier from one of the configured addons .