You are here

public function EntityWarmer::warmMultiple in Warmer 2.x

Same name and namespace in other branches
  1. 8 modules/warmer_entity/src/Plugin/warmer/EntityWarmer.php \Drupal\warmer_entity\Plugin\warmer\EntityWarmer::warmMultiple()

Warms multiple items.

Parameters

array $items: The items to warm.

Return value

int The number of items that were successfully warmed.

Overrides WarmerInterface::warmMultiple

File

modules/warmer_entity/src/Plugin/warmer/EntityWarmer.php, line 115

Class

EntityWarmer
The cache warmer for the built-in entity cache.

Namespace

Drupal\warmer_entity\Plugin\warmer

Code

public function warmMultiple(array $items = []) {

  // The entity load already warms the entity cache. Do nothing.
  return count($items);
}