function EntityTest::getName
Same name in other branches
- 8.9.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php \Drupal\entity_test\Entity\EntityTest::getName()
- 10 core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php \Drupal\entity_test\Entity\EntityTest::getName()
- 11.x core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php \Drupal\entity_test\Entity\EntityTest::getName()
Returns the name.
Return value
string
1 call to EntityTest::getName()
- EntityTestNoLabel::label in core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTestNoLabel.php - Gets the label of the entity.
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Entity/ EntityTest.php, line 162
Class
- EntityTest
- Defines the test entity class.
Namespace
Drupal\entity_test\EntityCode
public function getName() {
return $this->get('name')->value;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.