function BlockContentViewBuilder::viewMultiple
Overrides EntityViewBuilder::viewMultiple
File
-
core/
modules/ block_content/ src/ BlockContentViewBuilder.php, line 30
Class
- BlockContentViewBuilder
- View builder handler for content blocks.
Namespace
Drupal\block_contentCode
public function viewMultiple(array $entities = [], $view_mode = 'full', $langcode = NULL) {
$build_list = parent::viewMultiple($entities, $view_mode, $langcode);
// Apply the buildMultiple() #pre_render callback immediately, to make
// bubbling of attributes and contextual links to the actual block work.
// @see \Drupal\block\BlockViewBuilder::buildBlock()
unset($build_list['#pre_render'][0]);
return $this->buildMultiple($build_list);
}