function language_clear_default_configuration

Clears the default language configuration for an entity type and bundle.

Parameters

string $entity_type: A string representing the entity type.

string $bundle: A string representing the bundle.

2 calls to language_clear_default_configuration()
language_node_type_update in drupal/core/modules/language/language.module
Implements hook_node_type_update().
VocabularyFormController::languageConfigurationSubmit in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyFormController.php
Submit handler to update the bundle for the default language configuration.

File

drupal/core/modules/language/language.module, line 368
Add language handling functionality to Drupal.

Code

function language_clear_default_configuration($entity_type, $bundle) {
  config('language.settings')
    ->clear(language_get_default_configuration_settings_key($entity_type, $bundle))
    ->save();
}