function EntityTestNoLabel::label

Same name in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoLabel.php \Drupal\entity_test\Entity\EntityTestNoLabel::label()
  2. 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoLabel.php \Drupal\entity_test\Entity\EntityTestNoLabel::label()
  3. 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoLabel.php \Drupal\entity_test\Entity\EntityTestNoLabel::label()

Overrides ContentEntityBase::label

File

core/modules/system/tests/modules/entity_test/src/Entity/EntityTestNoLabel.php, line 31

Class

EntityTestNoLabel
Test entity class.

Namespace

Drupal\entity_test\Entity

Code

public function label() {
    return $this->getName();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.