1 block.text.inc BlockText::getAdminTitle()

Sets title text on draggable block panel in Layout builder.

Overrides Block::getAdminTitle

File

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

Class

BlockText
BlockText extends Block

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('Custom block');
}