public function BlockPreviewInterface::buildPreview in Panopoly 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 modules/
panopoly/ panopoly_magic/ tests/ modules/ panopoly_magic_preview_test/ src/ Plugin/ Block/ BlockWithImagePreview.php - Builds render array for block preview.
- BlockWithPreview::buildPreview in modules/
panopoly/ panopoly_magic/ tests/ modules/ panopoly_magic_preview_test/ src/ Plugin/ Block/ BlockWithPreview.php - Builds render array for block preview.
File
- modules/
panopoly/ panopoly_magic/ 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();