3 namespace Drupal\Core\Executable;
5 use Drupal\Component\Plugin\PluginManagerInterface;
8 * An interface for managers of executable plugins.
10 interface ExecutableManagerInterface extends PluginManagerInterface {
13 * Executes an executable plugin.
15 * @param \Drupal\Core\Executable\ExecutableInterface $plugin
16 * An executable plugin instance managed by the implementing manager.
19 * The returned data varies by plugin implementation, e.g. conditions return
20 * the boolean evaluation result.
22 * @throws \Drupal\Core\Executable\ExecutableException
23 * If the plugin could not be executed.
25 public function execute(ExecutableInterface $plugin);