public function SimplemetaEntity::label in Simple Meta 8
Same name and namespace in other branches
- 8.2 src/Entity/SimplemetaEntity.php \Drupal\simplemeta\Entity\SimplemetaEntity::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 ContentEntityBase::label
File
- src/
Entity/ SimplemetaEntity.php, line 59
Class
- SimplemetaEntity
- Defines the SimpleMeta entity.
Namespace
Drupal\simplemeta\EntityCode
public function label() {
return t('SimpleMeta @id', [
'@id' => $this
->id(),
]);
}