1 block_legacy.class.inc BlockLegacy::getAdminTitle()

Return an administrative title that will always have a value.

Overrides Block::getAdminTitle

File

core/modules/layout/includes/block_legacy.class.inc, line 57
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 getAdminTitle() {
  if (!empty($this->settings['admin_label'])) {
    return check_plain($this->settings['admin_label']);
  }

  $info = $this->getBlockInfo();
  return check_plain($info['info']);
}