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

Breadcrumb

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

function Term::setName

Overrides TermInterface::setName

File

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

Class

Term
Defines the taxonomy term entity.

Namespace

Drupal\taxonomy\Entity

Code

public function setName($name) {
    $this->set('name', $name);
    return $this;
}
RSS feed
Powered by Drupal