abstract class ActionBase

Provides a base implementation for an Action plugin.

Hierarchy

Expanded class hierarchy of ActionBase

17 files declare their use of ActionBase
BlockUser.php in drupal/core/modules/user/lib/Drupal/user/Plugin/Action/BlockUser.php
Contains \Drupal\user\Plugin\Action\BlockUser.
CancelUser.php in drupal/core/modules/user/lib/Drupal/user/Plugin/Action/CancelUser.php
Contains \Drupal\user\Plugin\Action\CancelUser.
ConfigurableActionBase.php in drupal/core/lib/Drupal/Core/Action/ConfigurableActionBase.php
Contains \Drupal\Core\Action\ConfigurableActionBase.
DeleteNode.php in drupal/core/modules/node/lib/Drupal/node/Plugin/Action/DeleteNode.php
Contains \Drupal\node\Plugin\Action\DeleteNode.
DemoteNode.php in drupal/core/modules/node/lib/Drupal/node/Plugin/Action/DemoteNode.php
Contains \Drupal\node\Plugin\Action\DemoteNode.

... See full list

File

drupal/core/lib/Drupal/Core/Action/ActionBase.php, line 16
Contains \Drupal\Core\Action\ActionBase.

Namespace

Drupal\Core\Action
View source
abstract class ActionBase extends ContainerFactoryPluginBase implements ActionInterface {

  /**
   * {@inheritdoc}
   */
  public function executeMultiple(array $entities) {
    foreach ($entities as $entity) {
      $this
        ->execute($entity);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ActionBase::executeMultiple public function Executes the plugin for an array of objects. Overrides ActionInterface::executeMultiple 2
ContainerFactoryPluginBase::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create 11
ExecutableInterface::execute public function Executes the plugin. 25
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition.
PluginBase::$pluginId protected property The plugin_id.
PluginBase::getPluginDefinition public function Returns the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition
PluginBase::getPluginId public function Returns the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::__construct public function Constructs a Drupal\Component\Plugin\PluginBase object. 17