function 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\EntityCode
public function setName($name) {
$this->label = $name;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.