Version 1
[yaffs-website] / web / core / lib / Drupal / Component / Plugin / FallbackPluginManagerInterface.php
1 <?php
2
3 namespace Drupal\Component\Plugin;
4
5 /**
6  * An interface implemented by plugin managers with fallback plugin behaviors.
7  */
8 interface FallbackPluginManagerInterface {
9
10   /**
11    * Gets a fallback id for a missing plugin.
12    *
13    * @param string $plugin_id
14    *   The ID of the missing requested plugin.
15    * @param array $configuration
16    *   An array of configuration relevant to the plugin instance.
17    *
18    * @return string
19    *   The id of an existing plugin to use when the plugin does not exist.
20    */
21   public function getFallbackPluginId($plugin_id, array $configuration = []);
22
23 }