You are here

public function ContentLanguageSettings::setDefaultLangcode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/Entity/ContentLanguageSettings.php \Drupal\language\Entity\ContentLanguageSettings::setDefaultLangcode()

Sets the default language code.

Parameters

string $default_langcode: The default language code.

Return value

$this;

Overrides ContentLanguageSettingsInterface::setDefaultLangcode

File

core/modules/language/src/Entity/ContentLanguageSettings.php, line 125
Contains \Drupal\language\Entity\ContentLanguageSettings.

Class

ContentLanguageSettings
Defines the ContentLanguageSettings entity.

Namespace

Drupal\language\Entity

Code

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