You are here

interface ExecutableManagerInterface in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php \Drupal\Core\Executable\ExecutableManagerInterface

An interface for managers of executable plugins.

Hierarchy

Expanded class hierarchy of ExecutableManagerInterface

All classes that implement ExecutableManagerInterface

4 files declare their use of ExecutableManagerInterface
BlockForm.php in core/modules/block/src/BlockForm.php
ConditionInterface.php in core/lib/Drupal/Core/Condition/ConditionInterface.php
ConditionManager.php in core/lib/Drupal/Core/Condition/ConditionManager.php
ConditionPluginBase.php in core/lib/Drupal/Core/Condition/ConditionPluginBase.php

File

core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php, line 10

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.
   *
   * @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);

}

Members

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 1
ExecutableManagerInterface::execute public function Executes an executable plugin. 1
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 6
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 3