PluginAwareInterface.php 359 B

123456789101112131415161718
  1. <?php
  2. namespace Drupal\Component\Plugin;
  3. /**
  4. * Provides an interface for objects that depend on a plugin.
  5. */
  6. interface PluginAwareInterface {
  7. /**
  8. * Sets the plugin for this object.
  9. *
  10. * @param \Drupal\Component\Plugin\PluginInspectionInterface $plugin
  11. * The plugin.
  12. */
  13. public function setPlugin(PluginInspectionInterface $plugin);
  14. }