public function AddMenuCacheflush::executeMultiple in CacheFlush 8
Executes the plugin for an array of objects.
Parameters
array $objects: An array of entities.
Overrides ActionBase::executeMultiple
File
- modules/
cacheflush_ui/ src/ Plugin/ Action/ AddMenuCacheflush.php, line 73
Class
- AddMenuCacheflush
- Add menu item.
Namespace
Drupal\cacheflush_ui\Plugin\ActionCode
public function executeMultiple(array $entities) {
foreach ($entities as $entity) {
$this
->execute($entity);
}
$this->routerBuilder
->rebuild();
}