Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 3 |
ActionBase | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 3 |
executeMultiple | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 3 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\Core\Action\ActionBase. | |
*/ | |
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); | |
} | |
} | |
} |