ExecutableManagerInterface.php 725 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Drupal\Core\Executable;
  3. use Drupal\Component\Plugin\PluginManagerInterface;
  4. /**
  5. * An interface for managers of executable plugins.
  6. */
  7. interface ExecutableManagerInterface extends PluginManagerInterface {
  8. /**
  9. * Executes an executable plugin.
  10. *
  11. * @param \Drupal\Core\Executable\ExecutableInterface $plugin
  12. * An executable plugin instance managed by the implementing manager.
  13. *
  14. * @return mixed
  15. * The returned data varies by plugin implementation, e.g. conditions return
  16. * the boolean evaluation result.
  17. *
  18. * @throws \Drupal\Core\Executable\ExecutableException
  19. * If the plugin could not be executed.
  20. */
  21. public function execute(ExecutableInterface $plugin);
  22. }