public Block::label()
Gets the label of the entity.
Return value
string|null The label of the entity, or NULL if there is no label defined.
Overrides Entity::label
File
- core/modules/block/src/Entity/Block.php, line 192
Class
- Block
- Defines a Block configuration entity class.
Namespace
Drupal\block\Entity
Code
1 2 3 4 5 6 7 8 9 10 | public function label() { $settings = $this ->get( 'settings' ); if ( $settings [ 'label' ]) { return $settings [ 'label' ]; } else { $definition = $this ->getPlugin()->getPluginDefinition(); return $definition [ 'admin_label' ]; } } |
Please login to continue.