function BlockViewBuilder::view
Overrides EntityViewBuilder::view
File
- 
              core/modules/ block/ src/ BlockViewBuilder.php, line 31 
Class
- BlockViewBuilder
- Provides a Block view builder.
Namespace
Drupal\blockCode
public function view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) {
  $build = $this->viewMultiple([
    $entity,
  ], $view_mode, $langcode);
  return reset($build);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
