You are here

interface BlockPreviewInterface in Panopoly Magic 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 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_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