You are here

public static function LibraryDeriver::create in Gin Layout Builder 8.2

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/wingsuit_ui_patterns/src/Plugin/Deriver/LibraryDeriver.php, line 112

Class

LibraryDeriver
Class LibraryDeriver.

Namespace

Drupal\wingsuit_ui_patterns\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('wingsuit_companion.file_extensions'), $container
    ->get('module_handler'), $container
    ->get('theme_handler'), $container
    ->get('config.factory'));
}