class ActionBase

Same name in other branches
  1. 9 core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase
  2. 8.9.x 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

9 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 Overrides ActionInterface::executeMultiple 3
ActionInterface::access public function Checks object access. 20
ExecutableInterface::execute public function Executes the plugin. 22
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.