1 block_example.inc BlockExample::getAdminTitle()

Sets title text on draggable block panel in Layout builder.

Overrides Block::getAdminTitle

File

modules/examples/block_example/block_example.inc, line 19

Class

BlockExample
BlockExample extends Block

Code

function getAdminTitle() {
  return !empty($this->settings['title']) ? check_plain($this->settings['title']) : t('Block Example block');
}