class ExtensionPathResolver (View source)

Factory for getting extension lists by type.

Properties

protected ExtensionList[] $extensionLists

A associative array of ExtensionList objects keyed by type.

Methods

__construct(ModuleExtensionList $module_extension_list, ProfileExtensionList $profile_extension_list, ThemeExtensionList $theme_extension_list, ThemeEngineExtensionList $theme_engine_extension_list)

ExtensionPathResolver constructor.

string|null
getPathname(string $type, string $name)

Gets the info file path for the extension.

string
getPath(string $type, string $name)

Gets the extension directory path.

Details

__construct(ModuleExtensionList $module_extension_list, ProfileExtensionList $profile_extension_list, ThemeExtensionList $theme_extension_list, ThemeEngineExtensionList $theme_engine_extension_list)

ExtensionPathResolver constructor.

Parameters

ModuleExtensionList $module_extension_list

The module extension list.

ProfileExtensionList $profile_extension_list

The profile extension list.

ThemeExtensionList $theme_extension_list

The theme extension list.

ThemeEngineExtensionList $theme_engine_extension_list

The theme engine extension list.

string|null getPathname(string $type, string $name)

Gets the info file path for the extension.

Parameters

string $type

The extension type.

string $name

The extension name.

Return Value

string|null

The extension path, or NULL if unknown.

string getPath(string $type, string $name)

Gets the extension directory path.

Parameters

string $type

The extension type.

string $name

The extension name.

Return Value

string

The extension info file path.

Exceptions

UnknownExtensionTypeException
UnknownExtensionException