You are here

public function EntityTestWithOwner::getName in Group 2.0.x

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