function ContentLanguageSettingsInterface::setDefaultLangcode

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

Sets the default language code.

Parameters

string $default_langcode: The default language code.

Return value

$this

1 method overrides ContentLanguageSettingsInterface::setDefaultLangcode()
ContentLanguageSettings::setDefaultLangcode in core/modules/language/src/Entity/ContentLanguageSettings.php
Sets the default language code.

File

core/modules/language/src/ContentLanguageSettingsInterface.php, line 44

Class

ContentLanguageSettingsInterface
Provides an interface defining language settings for content entities.

Namespace

Drupal\language

Code

public function setDefaultLangcode($default_langcode);

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