public Node::setTitle($title)
Sets the node title.
Parameters
string $title: The node title.
Return value
\Drupal\node\NodeInterface The called node entity.
Overrides NodeInterface::setTitle
File
- core/modules/node/src/Entity/Node.php, line 195
Class
- Node
- Defines the node entity class.
Namespace
Drupal\node\Entity
Code
public function setTitle($title) { $this->set('title', $title); return $this; }
Please login to continue.