Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BlockContentViewBuilder.php

function BlockContentViewBuilder::view

Overrides EntityViewBuilder::view

File

core/modules/block_content/src/BlockContentViewBuilder.php, line 23

Class

BlockContentViewBuilder
View builder handler for content blocks.

Namespace

Drupal\block_content

Code

public function view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) {
    return $this->viewMultiple([
        $entity,
    ], $view_mode, $langcode)[0];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal