public function EntityWarmer::warmMultiple in Warmer 8
Same name and namespace in other branches
- 2.x 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\warmerCode
public function warmMultiple(array $items = []) {
// The entity load already warms the entity cache. Do nothing.
return count($items);
}