You are here

public function LibrariesDirectoryFileFinder::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 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;
}