class ActionBase

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase
  2. 10 core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase
  3. 11.x core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase

Provides a base implementation for an Action plugin.

Hierarchy

Expanded class hierarchy of ActionBase

See also

\Drupal\Core\Annotation\Action

\Drupal\Core\Action\ActionManager

\Drupal\Core\Action\ActionInterface

Plugin API

8 files declare their use of ActionBase
BatchUserAction.php in core/modules/views/tests/modules/user_batch_action_test/src/Plugin/Action/BatchUserAction.php
BlockUser.php in core/modules/user/src/Plugin/Action/BlockUser.php
CancelUser.php in core/modules/user/src/Plugin/Action/CancelUser.php
EntityActionBase.php in core/lib/Drupal/Core/Action/Plugin/Action/EntityActionBase.php
FieldUpdateActionBase.php in core/lib/Drupal/Core/Field/FieldUpdateActionBase.php

... See full list

File

core/lib/Drupal/Core/Action/ActionBase.php, line 15

Namespace

Drupal\Core\Action
View source
abstract class ActionBase extends PluginBase implements ActionInterface {
    
    /**
     * {@inheritdoc}
     */
    public function executeMultiple(array $entities) {
        foreach ($entities as $entity) {
            $this->execute($entity);
        }
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
ActionBase::executeMultiple public function Executes the plugin for an array of objects. Overrides ActionInterface::executeMultiple 3
ActionInterface::access public function Checks object access. 19
ExecutableInterface::execute public function Executes the plugin. 21
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 6
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2

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