public function Node::getTitle in Drupal 8
Same name and namespace in other branches
- 9 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\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 201
Class
- Node
- Defines the node entity class.
Namespace
Drupal\node\EntityCode
public function getTitle() {
return $this
->get('title')->value;
}