You are here

public static function ContainerDeriverInterface::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface::create()
  2. 9 core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface::create()

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.

5 methods override ContainerDeriverInterface::create()
ContentEntityDeriver::create in core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntityDeriver.php
Creates a new class instance.
EntityActionDeriverBase::create in core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityActionDeriverBase.php
Creates a new class instance.
EntityBundle::create in core/lib/Drupal/Core/Entity/Plugin/Condition/Deriver/EntityBundle.php
Creates a new class instance.
EntityDeriver::create in core/lib/Drupal/Core/Entity/Plugin/DataType/Deriver/EntityDeriver.php
Creates a new class instance.
FieldItemDeriver::create in core/lib/Drupal/Core/Field/Plugin/DataType/Deriver/FieldItemDeriver.php
Creates a new class instance.

File

core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php, line 25

Class

ContainerDeriverInterface
Provides additional plugin definitions based on an existing definition using service injection.

Namespace

Drupal\Core\Plugin\Discovery

Code

public static function create(ContainerInterface $container, $base_plugin_id);