1 block.page_components.inc PageComponents::getContent()

Return the content of a block.

Return value

mixed:

Overrides Block::getContent

File

core/modules/system/block.page_components.inc, line 44

Class

PageComponents
PageComponents extends Block

Code

function getContent() {
  if ($this->childDelta == 'title_combo' || $this->childDelta == 'title' && isset($this->page_title)) {
    $this->settings['title'] = $this->page_title;
  }

  $output = theme('page_components', array('child_delta' => $this->childDelta, 'settings' => $this->settings));

  // Check for any non-space contents. A hidden page title may show nothing
  // at all and the whole block should be hidden in such a case.
  if (strlen(trim($output)) === 0) {
    return NULL;
  }
  return $output;
}