You are here

function geolocation_yandex_update_8002 in Geolocation Field 8.3

Setting new config "packages" to "full".

File

modules/geolocation_yandex/geolocation_yandex.install, line 55
Handle requirements.

Code

function geolocation_yandex_update_8002(&$sandbox) {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('geolocation_yandex.settings');
  $config
    ->set('packages', [
    'full',
  ]);
  $config
    ->save();
}