interface ContainerDeriverInterface
Same name in other branches
- 9 core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface
- 10 core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface
- 11.x core/lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface
Provides additional plugin definitions based on an existing definition using service injection.
Hierarchy
- interface \Drupal\Component\Plugin\Derivative\DeriverInterface
- interface \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface extends \Drupal\Component\Plugin\Derivative\DeriverInterface
Expanded class hierarchy of ContainerDeriverInterface
All classes that implement ContainerDeriverInterface
38 files declare their use of ContainerDeriverInterface
- BlockContent.php in core/
modules/ block_content/ src/ Plugin/ Derivative/ BlockContent.php - ConfigTranslationContextualLinks.php in core/
modules/ config_translation/ src/ Plugin/ Derivative/ ConfigTranslationContextualLinks.php - ConfigTranslationLocalTasks.php in core/
modules/ config_translation/ src/ Plugin/ Derivative/ ConfigTranslationLocalTasks.php - ContentEntityDeriver.php in core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ ContentEntityDeriver.php - ContentTranslationContextualLinks.php in core/
modules/ content_translation/ src/ Plugin/ Derivative/ ContentTranslationContextualLinks.php
File
-
core/
lib/ Drupal/ Core/ Plugin/ Discovery/ ContainerDeriverInterface.php, line 12
Namespace
Drupal\Core\Plugin\DiscoveryView source
interface ContainerDeriverInterface extends DeriverInterface {
/**
* Creates a new class instance.
*
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
* The container to pull out services used in the fetcher.
* @param string $base_plugin_id
* The base plugin ID for the plugin ID.
*
* @return static
* Returns an instance of this fetcher.
*/
public static function create(ContainerInterface $container, $base_plugin_id);
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
ContainerDeriverInterface::create | public static | function | Creates a new class instance. | 38 |
DeriverInterface::getDerivativeDefinition | public | function | Gets the definition of a derivative plugin. | 14 |
DeriverInterface::getDerivativeDefinitions | public | function | Gets the definition of all derivatives of a base plugin. | 14 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.