You are here

interface BlockPreviewInterface in Panopoly 8.2

Interface for block plugins that want to render their preview special.

Hierarchy

Expanded class hierarchy of BlockPreviewInterface

All classes that implement BlockPreviewInterface

3 files declare their use of BlockPreviewInterface
BlockPreviewRendererTest.php in modules/panopoly/panopoly_magic/tests/src/Unit/BlockPreviewRendererTest.php
BlockWithImagePreview.php in modules/panopoly/panopoly_magic/tests/modules/panopoly_magic_preview_test/src/Plugin/Block/BlockWithImagePreview.php
BlockWithPreview.php in modules/panopoly/panopoly_magic/tests/modules/panopoly_magic_preview_test/src/Plugin/Block/BlockWithPreview.php

File

modules/panopoly/panopoly_magic/src/BlockPreviewInterface.php, line 8

Namespace

Drupal\panopoly_magic
View 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

Namesort descending Modifiers Type Description Overrides
BlockPreviewInterface::buildPreview public function Builds render array for block preview. 2