1 block.class.inc | Block::getAdminPreview() |
Return a preview for this block.
File
- core/
modules/ layout/ includes/ block.class.inc, line 179 - 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() {
if (!empty($this->settings['admin_description'])) {
return filter_xss($this->settings['admin_description']);
}
$info = $this->getBlockInfo();
$preview = '';
if (isset($info['description'])) {
$preview .= '<p>' . filter_xss($info['description']) . '</p>';
}
$preview .= $this->getAdminConditionsPreview();
return $preview;
}