public function BlockPreviewInterface::buildPreview in Panopoly Magic 8.2
Builds render array for block preview.
Like BlockPluginInterface::build() but for preview.
Return value
array Render array of block preview content.
2 methods override BlockPreviewInterface::buildPreview()
- BlockWithImagePreview::buildPreview in tests/
modules/ panopoly_magic_preview_test/ src/ Plugin/ Block/ BlockWithImagePreview.php - Builds render array for block preview.
- BlockWithPreview::buildPreview in tests/
modules/ panopoly_magic_preview_test/ src/ Plugin/ Block/ BlockWithPreview.php - Builds render array for block preview.
File
- src/
BlockPreviewInterface.php, line 18
Class
- BlockPreviewInterface
- Interface for block plugins that want to render their preview special.
Namespace
Drupal\panopoly_magicCode
public function buildPreview();