FallbackPluginManagerInterface.php 594 B

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