Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / lib / Drupal / Core / Plugin / Discovery / ContainerDeriverInterface.php
1 <?php
2
3 namespace Drupal\Core\Plugin\Discovery;
4
5 use Drupal\Component\Plugin\Derivative\DeriverInterface;
6 use Symfony\Component\DependencyInjection\ContainerInterface;
7
8 /**
9  * Provides additional plugin definitions based on an existing definition using
10  * service injection.
11  */
12 interface ContainerDeriverInterface extends DeriverInterface {
13
14   /**
15    * Creates a new class instance.
16    *
17    * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
18    *   The container to pull out services used in the fetcher.
19    * @param string $base_plugin_id
20    *   The base plugin ID for the plugin ID.
21    *
22    * @return static
23    *   Returns an instance of this fetcher.
24    */
25   public static function create(ContainerInterface $container, $base_plugin_id);
26
27 }