PluginInspectionInterface.php 691 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Drupal\Component\Plugin;
  3. /**
  4. * Plugin interface for providing some metadata inspection.
  5. *
  6. * This interface provides some simple tools for code receiving a plugin to
  7. * interact with the plugin system.
  8. *
  9. * @ingroup plugin_api
  10. */
  11. interface PluginInspectionInterface {
  12. /**
  13. * Gets the plugin_id of the plugin instance.
  14. *
  15. * @return string
  16. * The plugin_id of the plugin instance.
  17. */
  18. public function getPluginId();
  19. /**
  20. * Gets the definition of the plugin implementation.
  21. *
  22. * @return array
  23. * The plugin definition, as returned by the discovery object used by the
  24. * plugin manager.
  25. */
  26. public function getPluginDefinition();
  27. }