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

1
2
3
public function getTitle() {
  return $this->get('title')->value;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.