Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContainerDeriverInterface.php

interface ContainerDeriverInterface

Creates additional plugin definitions.

The created definitions are 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

45 files declare their use of ContainerDeriverInterface
AddModerationDeriver.php in core/modules/content_moderation/src/Plugin/ConfigAction/AddModerationDeriver.php
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

... See full list

1 string reference to 'ContainerDeriverInterface'
GlobalClassSniff::process in vendor/drupal/coder/coder_sniffer/DrupalPractice/Sniffs/Objects/GlobalClassSniff.php
Processes this test, when one of its tokens is encountered.

File

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

Namespace

Drupal\Core\Plugin\Discovery
View 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. 45
DeriverInterface::getDerivativeDefinition public function Gets the definition of a derivative plugin. 9
DeriverInterface::getDerivativeDefinitions public function Gets the definition of all derivatives of a base plugin. 9
RSS feed
Powered by Drupal