ExecutableInterface.php

Same filename and directory in other branches
  1. 11.x core/lib/Drupal/Core/Executable/ExecutableInterface.php
  2. 10 core/lib/Drupal/Core/Executable/ExecutableInterface.php
  3. 9 core/lib/Drupal/Core/Executable/ExecutableInterface.php
  4. 8.9.x core/lib/Drupal/Core/Executable/ExecutableInterface.php

Namespace

Drupal\Core\Executable

File

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

View source
<?php

namespace Drupal\Core\Executable;


/**
 * An interface for executable plugins.
 *
 * @ingroup plugin_api
 */
interface ExecutableInterface {
  
  /**
   * Executes the plugin.
   *
   * phpcs:ignore Drupal.Commenting.FunctionComment.ParamNameNoMatch
   * @param object|null $object
   *   (optional) An object to execute the plugin on/with.
   *
   * @see https://www.drupal.org/project/drupal/issues/3354672
   *
   * @todo Uncomment the new $object method parameter before drupal:12.0.0.
   */
  public function execute();

}

Interfaces

Title Deprecated Summary
ExecutableInterface An interface for executable plugins.

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