You are here

interface ContainerDeriverInterface in Plug 7

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

Hierarchy

Expanded class hierarchy of ContainerDeriverInterface

All classes that implement ContainerDeriverInterface

File

lib/Drupal/Core/Plugin/Discovery/ContainerDeriverInterface.php, line 17
Contains \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface.

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

Namesort descending Modifiers Type Description Overrides
ContainerDeriverInterface::create public static function Creates a new class instance.
DeriverInterface::getDerivativeDefinition public function Gets the definition of a derivative plugin. 1
DeriverInterface::getDerivativeDefinitions public function Gets the definition of all derivatives of a base plugin. 1