You are here

public function UnpublishCacheflush::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/UnpublishCacheflush.php, line 73

Class

UnpublishCacheflush
Unpublishes a cacheflush.

Namespace

Drupal\cacheflush_ui\Plugin\Action

Code

public function executeMultiple(array $entities) {
  foreach ($entities as $entity) {
    $this
      ->execute($entity);
  }
  $this->routerBuilder
    ->rebuild();
}