Node::setTitle

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;
}
doc_Drupal
2016-10-29 09:30:26
Comments
Leave a Comment

Please login to continue.