1.20.x block_legacy.class.inc BlockLegacy::getContent()

Return the content of a block.

Return value

mixed:

Overrides Block::getContent

File

modules/layout/includes/block_legacy.class.inc, line 49
Class that wraps around legacy hook_block_view/config/save() hooks.

Class

BlockLegacy
@file Class that wraps around legacy hook_block_view/config/save() hooks.

Code

function getContent() {
  $block_content = $this->buildBlock();
  return isset($block_content['content']) ? $block_content['content'] : '';
}