Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php \Drupal\Core\Executable\ExecutableManagerInterface
  2. 9 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. 2
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.
ExecutableManagerInterface::execute public function Executes an executable plugin.
FactoryInterface::createInstance public function Creates a plugin instance based on the provided ID and configuration. 6
MapperInterface::getInstance public function Gets or creates a plugin instance that satisfies the given options. 2