You are here

public function SimplemetaEntity::label in Simple Meta 8

Same name and namespace in other branches
  1. 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\Entity

Code

public function label() {
  return t('SimpleMeta @id', [
    '@id' => $this
      ->id(),
  ]);
}