function NodeInterface::setTitle

Same name in other branches
  1. 9 core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface::setTitle()
  2. 8.9.x core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface::setTitle()
  3. 10 core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface::setTitle()

Sets the node title.

Parameters

string $title: The node title.

Return value

$this The called node entity.

1 method overrides NodeInterface::setTitle()
Node::setTitle in core/modules/node/src/Entity/Node.php
Sets the node title.

File

core/modules/node/src/NodeInterface.php, line 72

Class

NodeInterface
Provides an interface defining a node entity.

Namespace

Drupal\node

Code

public function setTitle($title);

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