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'
File
- src/
Controller/ DefaultController.php, line 40
Class
- DefaultController
- Class DefaultController.
Namespace
Drupal\view_modes_display\ControllerCode
public function previewBlockContent(BlockContentInterface $block_content) {
return $this
->preview($block_content);
}