1 block.class.inc Block::getAdminPreview()

Return a preview for this block.

File

core/modules/layout/includes/block.class.inc, line 155
A class that wraps around a block to store settings information.

Class

Block
@file A class that wraps around a block to store settings information.

Code

function getAdminPreview() {
  $info = $this->getBlockInfo();
  $preview = '';
  if (isset($info['description'])) {
    $preview .= '<p>' . $info['description'] . '</p>';
  }
  $preview .= $this->getAdminConditionsPreview();

  return $preview;
}