1 block.class.inc Block::getTitle()

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

Return value

mixed:

File

core/modules/layout/includes/block.class.inc, line 142
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;
}