3 namespace Drupal\Component\Plugin;
6 * An interface implemented by plugin managers with fallback plugin behaviors.
8 interface FallbackPluginManagerInterface {
11 * Gets a fallback id for a missing plugin.
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.
19 * The id of an existing plugin to use when the plugin does not exist.
21 public function getFallbackPluginId($plugin_id, array $configuration = []);