You are here

public function LanguageConfigurationHandler::onVariableSave in Configuration Management 7.3

File

src/Handlers/LanguageConfigurationHandler.php, line 59

Class

LanguageConfigurationHandler

Namespace

Configuration\Handlers

Code

public function onVariableSave($event) {
  $identifier = $event->configuration
    ->getIdentifier();
  if ($identifier == 'variable.language_default') {
    $data = $event->configuration
      ->getData();
    $event->configuration
      ->setData((object) $data);
  }
}