interface ExecutableManagerInterface

An interface for managers of executable plugins.

Hierarchy

Expanded class hierarchy of ExecutableManagerInterface

All classes that implement ExecutableManagerInterface

2 files declare their use of ExecutableManagerInterface

File

drupal/core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php, line 15
Contains \Drupal\Core\Executable\ExecutableManagerInterface.

Namespace

Drupal\Core\Executable
View source
interface ExecutableManagerInterface extends PluginManagerInterface {

  /**
   * Executes an executable plugin.
   *
   * @param \Drupal\Core\Executable\ExecutableInterface $plugin
   *   An executable plugin instance managed by the implementing manager.
   *
   * @throws \Drupal\Core\Executable\ExecutableException
   *   If the plugin could not be executed.
   *
   * @return mixed
   *   The returned data varies by plugin implementation, e.g. conditions return
   *   the the boolean evaluation result.
   */
  public function execute(ExecutableInterface $plugin);

}

Members

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 10
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 10
ExecutableManagerInterface::execute public function Executes an executable plugin. 1
FactoryInterface::createInstance public function Returns a preconfigured instance of a plugin. 2
MapperInterface::getInstance public function Returns a preconfigured instance of a plugin. 1