1 node.block.inc | NodeBlock::getAdminPreview() |
Returns a preview for this block.
Overrides Block::getAdminPreview
File
- core/
modules/ node/ node.block.inc, line 21 - A class that displays a particular node in a block.
Class
- NodeBlock
- @file A class that displays a particular node in a block.
Code
function getAdminPreview() {
if (!empty($this->settings['admin_description'])) {
return filter_xss($this->settings['admin_description']);
}
$preview = '<p>' . t('Displays content of node ID: @nid', array('@nid' => $this->settings['nid'])) . '</p>';
$preview .= $this->getAdminConditionsPreview();
return $preview;
}