interface ExecutableManagerInterface

Same name in other branches
  1. 9 core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php \Drupal\Core\Executable\ExecutableManagerInterface
  2. 8.9.x core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php \Drupal\Core\Executable\ExecutableManagerInterface
  3. 11.x 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 extends \Drupal\Component\Plugin\Discovery\DiscoveryInterface \Drupal\Component\Plugin\Factory\FactoryInterface \Drupal\Component\Plugin\Mapper\MapperInterface

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

Title Sort descending Modifiers Object type Summary
ExecutableManagerInterface::execute public function Executes an executable plugin.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.