You are here

public function Relation::label in Relation 8.2

Same name and namespace in other branches
  1. 8 src/Entity/Relation.php \Drupal\relation\Entity\Relation::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/Relation.php, line 69

Class

Relation
Defines relation entity.

Namespace

Drupal\relation\Entity

Code

public function label($langcode = NULL) {
  return t('Relation @id', array(
    '@id' => $this
      ->id(),
  ));
}