function LoadLibraryController::__construct

Constructs a new LoadLibraryController.

Parameters

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

\Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The library discovery service.

File

core/modules/system/tests/modules/modernizr_deprecation_test/src/Controller/LoadLibraryController.php, line 66

Class

LoadLibraryController
A page to facilitate library loading.

Namespace

Drupal\modernizr_deprecation_test\Controller

Code

public function __construct(ModuleExtensionList $module_extension_list, LibraryDiscoveryInterface $library_discovery) {
    $this->moduleExtensionList = $module_extension_list;
    $this->libraryDiscovery = $library_discovery;
}

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