1 block.hero.inc BlockHero::getContent()

Returns the rendered content of this block.

If there is no content, a non-breaking space is returned to ensure the block is still displayed, with only the background image applied.

Return value

string:

Overrides BlockText::getContent

File

core/modules/layout/includes/block.hero.inc, line 40

Class

BlockHero
BlockHero extends BlockText

Code

function getContent() {
  if (!empty($this->settings['content'])) {
    return check_markup(token_replace($this->settings['content']), $this->settings['format'], '', TRUE);
  }
  elseif (!empty($this->settings['title']) || !empty($this->settings['image'])) {
    return ' ';
  }
}