function NodeInterface::getTitle

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

Gets the node title.

Return value

string|null Title of the node, or NULL if the node doesn't yet have a title (for example, if a new node is being previewed).

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

File

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

Class

NodeInterface
Provides an interface defining a node entity.

Namespace

Drupal\node

Code

public function getTitle();

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