public static function AbstractYamlPatternsDeriver::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 AbstractPatternsDeriver::create
1 method overrides AbstractYamlPatternsDeriver::create()
- LibraryDeriver::create in modules/
ui_patterns_library/ src/ Plugin/ Deriver/ LibraryDeriver.php - Creates a new class instance.
File
- src/
Plugin/ Deriver/ AbstractYamlPatternsDeriver.php, line 48
Class
- AbstractYamlPatternsDeriver
- Class AbstractYamlPatternsDeriver.
Namespace
Drupal\ui_patterns\Plugin\DeriverCode
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'));
}