ActionBase.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Action/ActionBase.php
  2. 10 core/lib/Drupal/Core/Action/ActionBase.php
  3. 11.x core/lib/Drupal/Core/Action/ActionBase.php

Namespace

Drupal\Core\Action

File

core/lib/Drupal/Core/Action/ActionBase.php

View source
<?php

namespace Drupal\Core\Action;

use Drupal\Core\Plugin\PluginBase;

/**
 * Provides a base implementation for an Action plugin.
 *
 * @see \Drupal\Core\Annotation\Action
 * @see \Drupal\Core\Action\ActionManager
 * @see \Drupal\Core\Action\ActionInterface
 * @see plugin_api
 */
abstract class ActionBase extends PluginBase implements ActionInterface {
    
    /**
     * {@inheritdoc}
     */
    public function executeMultiple(array $entities) {
        foreach ($entities as $entity) {
            $this->execute($entity);
        }
    }

}

Classes

Title Deprecated Summary
ActionBase Provides a base implementation for an Action plugin.

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