You are here

function apigee_edge_update_8106 in Apigee Edge 8

Update the default environment config for app analytics.

File

./apigee_edge.install, line 330
Copyright 2018 Google Inc.

Code

function apigee_edge_update_8106() {
  $config_factory = \Drupal::configFactory();
  $app_settings = $config_factory
    ->getEditable('apigee_edge.common_app_settings');
  $app_settings
    ->set('analytics_available_environments', [
    $app_settings
      ->get('analytics_environment'),
  ])
    ->save(TRUE);
}