1 field.block.inc FieldBlock::getAdminTitle()

Sets title text on draggable block panel in Layout builder.

Overrides Block::getAdminTitle

File

core/modules/field/field.block.inc, line 24

Class

FieldBlock
FieldBlock extends Block

Code

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

  list($entity_type, $field_name) = explode('-', $this->childDelta, 2);
  return t('Field %field', array('%field' => $field_name));
}