1. 8.5.x core/lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface
  2. 8.0.x core/lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface
  3. 8.1.x core/lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface
  4. 8.2.x core/lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface
  5. 8.3.x core/lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface
  6. 8.4.x core/lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface
  7. 8.6.x core/lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php ContainerFactoryPluginInterface

Defines an interface for pulling plugin dependencies from the container.

Hierarchy

Expanded class hierarchy of ContainerFactoryPluginInterface

All classes that implement ContainerFactoryPluginInterface

112 files declare their use of ContainerFactoryPluginInterface
AggregatorFeedBlock.php in core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
AjaxFormBlock.php in core/modules/system/tests/modules/ajax_forms_test/src/Plugin/Block/AjaxFormBlock.php
AssignOwnerNode.php in core/modules/node/src/Plugin/Action/AssignOwnerNode.php
BlockContentBlock.php in core/modules/block_content/src/Plugin/Block/BlockContentBlock.php
BlockedIp.php in core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php

... See full list

File

core/lib/Drupal/Core/Plugin/ContainerFactoryPluginInterface.php, line 10

Namespace

Drupal\Core\Plugin
View source
interface ContainerFactoryPluginInterface {

  /**
   * Creates an instance of the plugin.
   *
   * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
   *   The container to pull out services used in the plugin.
   * @param array $configuration
   *   A configuration array containing information about the plugin instance.
   * @param string $plugin_id
   *   The plugin ID for the plugin instance.
   * @param mixed $plugin_definition
   *   The plugin implementation definition.
   *
   * @return static
   *   Returns an instance of this plugin.
   */
  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition);

}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description Overrides
ContainerFactoryPluginInterface::create public static function Creates an instance of the plugin.