function LoadLibraryController::create

Overrides ContainerInjectionInterface::create

File

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

Class

LoadLibraryController
A page to facilitate library loading.

Namespace

Drupal\modernizr_deprecation_test\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('extension.list.module'), $container->get('library.discovery'));
}

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