You are here

public function EntityTest::getName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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
inheritdoc}

File

core/modules/system/tests/modules/entity_test/src/Entity/EntityTest.php, line 184
Contains \Drupal\entity_test\Entity\EntityTest.

Class

EntityTest
Defines the test entity class.

Namespace

Drupal\entity_test\Entity

Code

public function getName() {
  return $this
    ->get('name')->value;
}