Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Action/ActionBase.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Core\Action; | |
4 | |
5 use 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 */ | |
15 abstract 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 } |