1.20.x block.class.inc Block::getTitle()

Return the title of a block as configured in the layout.

Return value

mixed:

File

modules/layout/includes/block.class.inc, line 122
A class that wraps around a block to store settings information.

Class

Block
@file A class that wraps around a block to store settings information.

Code

function getTitle() {
  $title = NULL;
  if ($this->settings['title_display'] === LAYOUT_TITLE_CUSTOM && $this->settings['title']) {
    $title = check_plain($this->settings['title']);
  }
  return $title;
}