You are here

public function ExtensionPathResolver::__construct in Drupal 9

ExtensionPathResolver constructor.

Parameters

\Drupal\Core\Extension\ModuleExtensionList $module_extension_list: The module extension list.

\Drupal\Core\Extension\ProfileExtensionList $profile_extension_list: The profile extension list.

\Drupal\Core\Extension\ThemeExtensionList $theme_extension_list: The theme extension list.

\Drupal\Core\Extension\ThemeEngineExtensionList $theme_engine_extension_list: The theme engine extension list.

File

core/lib/Drupal/Core/Extension/ExtensionPathResolver.php, line 31

Class

ExtensionPathResolver
Factory for getting extension lists by type.

Namespace

Drupal\Core\Extension

Code

public function __construct(ModuleExtensionList $module_extension_list, ProfileExtensionList $profile_extension_list, ThemeExtensionList $theme_extension_list, ThemeEngineExtensionList $theme_engine_extension_list) {
  $this->extensionLists['module'] = $module_extension_list;
  $this->extensionLists['profile'] = $profile_extension_list;
  $this->extensionLists['theme'] = $theme_extension_list;
  $this->extensionLists['theme_engine'] = $theme_engine_extension_list;
}