You are here

public function EntityTestWithOwner::getName in Group 8

Same name and namespace in other branches
  1. 2.0.x tests/modules/group_test_plugin/src/Entity/EntityTestWithOwner.php \Drupal\group_test_plugin\Entity\EntityTestWithOwner::getName()

Returns the name.

Return value

string

File

tests/modules/group_test_plugin/src/Entity/EntityTestWithOwner.php, line 92

Class

EntityTestWithOwner
Defines the test entity with owner class.

Namespace

Drupal\group_test_plugin\Entity

Code

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