You are here

abstract class ActionBase in Drupal 10

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