Node::getTitle

public Node::getTitle()

Gets the node title.

Return value

string Title of the node.

Overrides NodeInterface::getTitle

File

core/modules/node/src/Entity/Node.php, line 188

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public function getTitle() {
  return $this->get('title')->value;
}
doc_Drupal
2016-10-29 09:30:21
Comments
Leave a Comment

Please login to continue.