You are here

public static function AbstractPatternsDeriver::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 ContainerDeriverInterface::create

1 method overrides AbstractPatternsDeriver::create()
AbstractYamlPatternsDeriver::create in src/Plugin/Deriver/AbstractYamlPatternsDeriver.php
Creates a new class instance.

File

src/Plugin/Deriver/AbstractPatternsDeriver.php, line 49

Class

AbstractPatternsDeriver
Class AbstractPatternsDeriver.

Namespace

Drupal\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'));
}