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

@param string $identifier
Identifier of one of the components from the addon to get.

@return Addon Configured addon having a component with the given identifier.
Get one of the configured addons having a component with the given identifier .