You are here

public function Relation::label in Relation 8

Same name and namespace in other branches
  1. 8.2 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 68
Contains \Drupal\relation\Entity\Relation.

Class

Relation
Defines relation entity.

Namespace

Drupal\relation\Entity

Code

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