interface BlockPreviewInterface in Panopoly Magic 8.2
Interface for block plugins that want to render their preview special.
Hierarchy
- interface \Drupal\panopoly_magic\BlockPreviewInterface
Expanded class hierarchy of BlockPreviewInterface
All classes that implement BlockPreviewInterface
3 files declare their use of BlockPreviewInterface
- BlockPreviewRendererTest.php in tests/
src/ Unit/ BlockPreviewRendererTest.php - BlockWithImagePreview.php in tests/
modules/ panopoly_magic_preview_test/ src/ Plugin/ Block/ BlockWithImagePreview.php - BlockWithPreview.php in tests/
modules/ panopoly_magic_preview_test/ src/ Plugin/ Block/ BlockWithPreview.php
File
- src/
BlockPreviewInterface.php, line 8
Namespace
Drupal\panopoly_magicView source
interface BlockPreviewInterface {
/**
* Builds render array for block preview.
*
* Like BlockPluginInterface::build() but for preview.
*
* @return array
* Render array of block preview content.
*/
public function buildPreview();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlockPreviewInterface:: |
public | function | Builds render array for block preview. | 2 |