You are here

public static function LibraryDeriver::create in UI Patterns 8

Creates a new class instance.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.

string $base_plugin_id: The base plugin ID for the plugin ID.

Return value

static Returns an instance of this fetcher.

Overrides AbstractYamlPatternsDeriver::create

File

modules/ui_patterns_library/src/Plugin/Deriver/LibraryDeriver.php, line 110

Class

LibraryDeriver
Class LibraryDeriver.

Namespace

Drupal\ui_patterns_library\Plugin\Deriver

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
  return new static($base_plugin_id, $container
    ->get('typed_data_manager'), $container
    ->get('messenger'), $container
    ->get('file_system'), $container
    ->get('app.root'), $container
    ->getParameter('ui_patterns_library.file_extensions'), $container
    ->get('module_handler'), $container
    ->get('theme_handler'));
}