function EntityTestWithRevisionLog::setName
Same name in other branches
- 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 98
Class
- EntityTestWithRevisionLog
- Defines the test entity class.
Namespace
Drupal\entity_test_revlog\EntityCode
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.