1.20.x node.block.inc NodeBlock::getAdminPreview()

Returns a preview for this block.

Overrides Block::getAdminPreview

File

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']);
  }

  return t('Displays content of node ID: @nid', array('@nid' => $this->settings['nid']));
}