interface ExecutableManagerInterface in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php \Drupal\Core\Executable\ExecutableManagerInterface
An interface for managers of executable plugins.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\Core\Executable\ExecutableManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
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\ExecutableView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | 4 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 3 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
ExecutableManagerInterface:: |
public | function | Executes an executable plugin. | 1 |
FactoryInterface:: |
public | function | Creates a pre-configured instance of a plugin. | 7 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |