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

Breadcrumb

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

function Term::getName

Overrides TermInterface::getName

File

core/modules/taxonomy/src/Entity/Term.php, line 272

Class

Term
Defines the taxonomy term entity.

Namespace

Drupal\taxonomy\Entity

Code

public function getName() {
    return $this->label() ?? '';
}
RSS feed
Powered by Drupal