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

Breadcrumb

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

function EntityInterface::label

Gets the label of the entity.

Return value

string|\Drupal\Core\StringTranslation\TranslatableMarkup|null The label of the entity, or NULL if there is no label defined.

2 methods override EntityInterface::label()
EntityBase::label in core/lib/Drupal/Core/Entity/EntityBase.php
Gets the label of the entity.
ViewUI::label in core/modules/views_ui/src/ViewUI.php
Gets the label of the entity.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 96

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function label();

API Navigation

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