public function ContentLanguageSettingsInterface::setDefaultLangcode in Drupal 9
Same name and namespace in other branches
- 8 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\languageCode
public function setDefaultLangcode($default_langcode);