ContentLanguageSettings::setDefaultLangcode

public ContentLanguageSettings::setDefaultLangcode($default_langcode)

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 121

Class

ContentLanguageSettings
Defines the ContentLanguageSettings entity.

Namespace

Drupal\language\Entity

Code

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

  return $this;
}
doc_Drupal
2016-10-29 08:57:51
Comments
Leave a Comment

Please login to continue.