You are here

public function Node::getTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 189
Contains \Drupal\node\Entity\Node.

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public function getTitle() {
  return $this
    ->get('title')->value;
}