ExecutableManagerInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php
  2. 8.9.x core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php
  3. 11.x core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php

Namespace

Drupal\Core\Executable

File

core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php

View source
<?php

namespace Drupal\Core\Executable;

use Drupal\Component\Plugin\PluginManagerInterface;

/**
 * An interface for managers of executable plugins.
 */
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);

}

Interfaces

Title Deprecated Summary
ExecutableManagerInterface An interface for managers of executable plugins.

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