1 node.block.inc | NodeBlock::getAdminTitle() |
Sets title text on draggable block panel in Layout builder.
Overrides Block::getAdminTitle
File
- core/
modules/ node/ node.block.inc, line 10 - A class that displays a particular node in a block.
Class
- NodeBlock
- @file A class that displays a particular node in a block.
Code
function getAdminTitle() {
if (!empty($this->settings['admin_label'])) {
return check_plain($this->settings['admin_label']);
}
return t('Existing content');
}