You are here

public function Synonym::label in Synonyms 2.0.x

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

Class

Synonym
Synonym configuration entity.

Namespace

Drupal\synonyms\Entity

Code

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