function ContentLanguageSettings::setDefaultLangcode

Same name in other branches
  1. 9 core/modules/language/src/Entity/ContentLanguageSettings.php \Drupal\language\Entity\ContentLanguageSettings::setDefaultLangcode()
  2. 10 core/modules/language/src/Entity/ContentLanguageSettings.php \Drupal\language\Entity\ContentLanguageSettings::setDefaultLangcode()
  3. 11.x core/modules/language/src/Entity/ContentLanguageSettings.php \Drupal\language\Entity\ContentLanguageSettings::setDefaultLangcode()

Overrides ContentLanguageSettingsInterface::setDefaultLangcode

File

core/modules/language/src/Entity/ContentLanguageSettings.php, line 133

Class

ContentLanguageSettings
Defines the ContentLanguageSettings entity.

Namespace

Drupal\language\Entity

Code

public function setDefaultLangcode($default_langcode) {
    $this->default_langcode = $default_langcode;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.