You are here

public function DomainLangHandler::saveLanguageTypesConfiguration in Domain Lang 8

Stores language types configuration.

Parameters

array $values: An indexed array with the following keys_

  • configurable: an array of configurable language type names.
  • all: an array of all the defined language type names.

Overrides DomainLangHandlerInterface::saveLanguageTypesConfiguration

1 call to DomainLangHandler::saveLanguageTypesConfiguration()
DomainLangHandler::updateConfiguration in src/DomainLangHandler.php
Updates the configuration based on the given language types.

File

src/DomainLangHandler.php, line 205

Class

DomainLangHandler
Domain language handling.

Namespace

Drupal\domain_lang

Code

public function saveLanguageTypesConfiguration(array $values) {
  $config = $this
    ->getLanguageTypesConfig();
  if (isset($values['configurable'])) {
    $config
      ->set('configurable', $values['configurable']);
  }
  if (isset($values['all'])) {
    $config
      ->set('all', $values['all']);
  }
  $config
    ->save();
}