public function Node::setTitle in Drupal 9
Same name and namespace in other branches
- 8 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::setTitle()
Sets the node title.
Parameters
string $title: The node title.
Return value
$this The called node entity.
Overrides NodeInterface::setTitle
File
- core/
modules/ node/ src/ Entity/ Node.php, line 208
Class
- Node
- Defines the node entity class.
Namespace
Drupal\node\EntityCode
public function setTitle($title) {
$this
->set('title', $title);
return $this;
}