You are here

public function DefaultController::previewBlockContent in View Modes Display 8

Returns content of the block.

Parameters

\Drupal\block_content\BlockContentInterface $block_content: The block content.

Return value

string Preview content of the block.

1 string reference to 'DefaultController::previewBlockContent'
view_modes_display.routing.yml in ./view_modes_display.routing.yml
view_modes_display.routing.yml

File

src/Controller/DefaultController.php, line 40

Class

DefaultController
Class DefaultController.

Namespace

Drupal\view_modes_display\Controller

Code

public function previewBlockContent(BlockContentInterface $block_content) {
  return $this
    ->preview($block_content);
}