function ContainerDeriverInterface::create
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface::create()
- 8.9.x core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface::create()
- 10 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.
46 methods override ContainerDeriverInterface::create()
- AddModerationDeriver::create in core/
modules/ content_moderation/ src/ Plugin/ ConfigAction/ AddModerationDeriver.php - 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 - ConfigTranslationLocalTasks::create in core/
modules/ config_translation/ src/ Plugin/ Derivative/ ConfigTranslationLocalTasks.php - ContentEntityDeriver::create in core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ ContentEntityDeriver.php
File
-
core/
lib/ Drupal/ Core/ Plugin/ Discovery/ ContainerDeriverInterface.php, line 27
Class
- ContainerDeriverInterface
- Creates additional plugin definitions.
Namespace
Drupal\Core\Plugin\DiscoveryCode
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.