You are here

public function EntityTestWithOwner::setName 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::setName()

Sets the name.

Parameters

string $name: Name of the entity.

Return value

$this

File

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

Class

EntityTestWithOwner
Defines the test entity with owner class.

Namespace

Drupal\group_test_plugin\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}