Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NodeInterface.php

function 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();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal