You are here

public function Synonym::label in Synonyms 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Synonym.php \Drupal\synonyms\Entity\Synonym::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 EntityBase::label

File

src/Entity/Synonym.php, line 95

Class

Synonym
Synonym configuration entity.

Namespace

Drupal\synonyms\Entity

Code

public function label() {
  return $this
    ->getProviderPluginInstance()
    ->getPluginDefinition()['label'];
}