b2210e1391a2d502f22d22025f8dfb8de0a7e5a8
[yaffs-website] / ContainerFactoryPluginInterface.php
1 <?php
2
3 namespace Drupal\Core\Plugin;
4
5 use Symfony\Component\DependencyInjection\ContainerInterface;
6
7 /**
8  * Defines an interface for pulling plugin dependencies from the container.
9  */
10 interface ContainerFactoryPluginInterface {
11
12   /**
13    * Creates an instance of the plugin.
14    *
15    * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
16    *   The container to pull out services used in the plugin.
17    * @param array $configuration
18    *   A configuration array containing information about the plugin instance.
19    * @param string $plugin_id
20    *   The plugin ID for the plugin instance.
21    * @param mixed $plugin_definition
22    *   The plugin implementation definition.
23    *
24    * @return static
25    *   Returns an instance of this plugin.
26    */
27   public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition);
28
29 }