ActionBase.php 525 B

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