public function DeleteCacheflush::executeMultiple in CacheFlush 8
Executes the plugin for an array of objects.
Parameters
array $objects: An array of entities.
Overrides ActionBase::executeMultiple
1 call to DeleteCacheflush::executeMultiple()
- DeleteCacheflush::execute in modules/
cacheflush_ui/ src/ Plugin/ Action/ DeleteCacheflush.php - Executes the plugin.
File
- modules/
cacheflush_ui/ src/ Plugin/ Action/ DeleteCacheflush.php, line 74
Class
- DeleteCacheflush
- Redirects to a cacheflush deletion form.
Namespace
Drupal\cacheflush_ui\Plugin\ActionCode
public function executeMultiple(array $entities) {
$info = [];
/** @var \Drupal\cacheflush_entity\Entity\CacheflushEntity $cacheflush */
foreach ($entities as $cacheflush) {
$langcode = $cacheflush
->language()
->getId();
$info[$cacheflush
->id()][$langcode] = $langcode;
}
$this->tempStore
->set($this->currentUser
->id(), $info);
}