public static function getAddonByIdentifier(string $identifier)
    {
        foreach (self::getAddons() as $addon) {
            if ($addon->getIdentifier() == $identifier) {
                return $addon;
            }
        }
        
        return null;
    }
public static function getAddonByIdentifier(string $identifier)
    {
        foreach (self::getAddons() as $addon) {
            if ($addon->getIdentifier() == $identifier) {
                return $addon;
            }
        }
        
        return null;
    }
public static function getAddonByIdentifier ( string $ identifier ) { foreach ( self :: getAddons ( ) as $ addon ) { if ( $ addon -> getIdentifier ( ) == $ identifier ) { return $ addon ; } } return null ; }
Get one of the configured addons by its identifier.

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

@return Addon The addon with the given identifier.
Get one of the configured addons by its identifier .