You are here

public function ConfigurableLanguage::setName in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/language/src/Entity/ConfigurableLanguage.php \Drupal\language\Entity\ConfigurableLanguage::setName()

Sets the name of the language.

Parameters

string $name: The human-readable English name of the language.

Return value

$this

Overrides ConfigurableLanguageInterface::setName

File

core/modules/language/src/Entity/ConfigurableLanguage.php, line 227

Class

ConfigurableLanguage
Defines the ConfigurableLanguage entity.

Namespace

Drupal\language\Entity

Code

public function setName($name) {
  $this->label = $name;
  return $this;
}