function ExtensionPathResolver::__construct

Same name in other branches
  1. 10 core/lib/Drupal/Core/Extension/ExtensionPathResolver.php \Drupal\Core\Extension\ExtensionPathResolver::__construct()
  2. 11.x core/lib/Drupal/Core/Extension/ExtensionPathResolver.php \Drupal\Core\Extension\ExtensionPathResolver::__construct()

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.