function EntityTestWithRevisionLog::setName

Same name and namespace in other branches
  1. 10 core/modules/system/tests/modules/entity_test_revlog/src/Entity/EntityTestWithRevisionLog.php \Drupal\entity_test_revlog\Entity\EntityTestWithRevisionLog::setName()

Sets the name.

Parameters

string $name: Name of the entity.

Return value

$this

File

core/modules/system/tests/modules/entity_test_revlog/src/Entity/EntityTestWithRevisionLog.php, line 89

Class

EntityTestWithRevisionLog
Defines the test entity class.

Namespace

Drupal\entity_test_revlog\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.