public function CustomLanguage::setName in Custom Language field 8
Sets the name of the language.
Parameters
string $name: The human-readable English name of the language.
Return value
$this
Overrides ConfigurableLanguageInterface::setName
File
- src/
Entity/ CustomLanguage.php, line 100
Class
- CustomLanguage
- Defines the CustomLanguage entity.
Namespace
Drupal\languagefield\EntityCode
public function setName($name) {
$this->label = $name;
return $this;
}