function ContainerDeriverInterface::create

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface::create()
  2. 10 core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface::create()
  3. 11.x 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.

38 methods override ContainerDeriverInterface::create()
BlockContent::create in core/modules/block_content/src/Plugin/Derivative/BlockContent.php
Creates a new class instance.
ConfigTranslationContextualLinks::create in core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationContextualLinks.php
Creates a new class instance.
ConfigTranslationLocalTasks::create in core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationLocalTasks.php
Creates a new class instance.
ContentEntityDeriver::create in core/modules/migrate_drupal/src/Plugin/migrate/source/ContentEntityDeriver.php
Creates a new class instance.
ContentTranslationContextualLinks::create in core/modules/content_translation/src/Plugin/Derivative/ContentTranslationContextualLinks.php
Creates a new class instance.

... See full list

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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.