Mercurial > hg > isophonics-drupal-site
diff core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,27 @@ +<?php + +namespace Drupal\Core\Executable; + +use Drupal\Component\Plugin\PluginManagerInterface; + +/** + * An interface for managers of executable plugins. + */ +interface ExecutableManagerInterface extends PluginManagerInterface { + + /** + * Executes an executable plugin. + * + * @param \Drupal\Core\Executable\ExecutableInterface $plugin + * An executable plugin instance managed by the implementing manager. + * + * @return mixed + * The returned data varies by plugin implementation, e.g. conditions return + * the boolean evaluation result. + * + * @throws \Drupal\Core\Executable\ExecutableException + * If the plugin could not be executed. + */ + public function execute(ExecutableInterface $plugin); + +}