function LibrariesDirectoryFileFinder::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Asset/LibrariesDirectoryFileFinder.php \Drupal\Core\Asset\LibrariesDirectoryFileFinder::__construct()
  2. 10 core/lib/Drupal/Core/Asset/LibrariesDirectoryFileFinder.php \Drupal\Core\Asset\LibrariesDirectoryFileFinder::__construct()
  3. 11.x core/lib/Drupal/Core/Asset/LibrariesDirectoryFileFinder.php \Drupal\Core\Asset\LibrariesDirectoryFileFinder::__construct()

Constructs a new LibrariesDirectoryFileFinder instance.

Parameters

string $root: The app root.

string $site_path: The site path.

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

string $install_profile: The install profile.

File

core/lib/Drupal/Core/Asset/LibrariesDirectoryFileFinder.php, line 52

Class

LibrariesDirectoryFileFinder
Finds files that are located in the supported 'libraries' directories.

Namespace

Drupal\Core\Asset

Code

public function __construct($root, $site_path, ProfileExtensionList $profile_extension_list, $install_profile) {
    $this->root = $root;
    $this->sitePath = $site_path;
    $this->profileExtensionList = $profile_extension_list;
    $this->installProfile = $install_profile;
}

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