DerivativeInspectionInterface.php 541 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Drupal\Component\Plugin;
  3. /**
  4. * Provides a plugin interface for providing derivative metadata inspection.
  5. */
  6. interface DerivativeInspectionInterface {
  7. /**
  8. * Gets the base_plugin_id of the plugin instance.
  9. *
  10. * @return string
  11. * The base_plugin_id of the plugin instance.
  12. */
  13. public function getBaseId();
  14. /**
  15. * Gets the derivative_id of the plugin instance.
  16. *
  17. * @return string|null
  18. * The derivative_id of the plugin instance NULL otherwise.
  19. */
  20. public function getDerivativeId();
  21. }