1 block.hero.inc BlockHero::getAdminTitle()

Sets title text on draggable block panel in Layout builder.

Overrides BlockText::getAdminTitle

File

core/modules/layout/includes/block.hero.inc, line 24

Class

BlockHero
BlockHero extends BlockText

Code

function getAdminTitle() {
  if (!empty($this->settings['admin_label'])) {
    return check_plain($this->settings['admin_label']);
  }

  return !empty($this->settings['title']) ? check_plain($this->settings['title']) : t('Hero block');
}