1<?php 2 3namespace Drupal\Core\Action; 4 5use Drupal\Core\Plugin\PluginBase; 6 7/** 8 * Provides a base implementation for an Action plugin. 9 * 10 * @see \Drupal\Core\Annotation\Action 11 * @see \Drupal\Core\Action\ActionManager 12 * @see \Drupal\Core\Action\ActionInterface 13 * @see plugin_api 14 */ 15abstract class ActionBase extends PluginBase implements ActionInterface { 16 17 /** 18 * {@inheritdoc} 19 */ 20 public function executeMultiple(array $entities) { 21 foreach ($entities as $entity) { 22 $this->execute($entity); 23 } 24 } 25 26} 27