You are here

function auto_entitylabel_update_8001 in Automatic Entity Label 8.2

Same name and namespace in other branches
  1. 8.3 auto_entitylabel.install \auto_entitylabel_update_8001()

Implements hook_update_N().

File

./auto_entitylabel.install, line 11
Install, update and uninstall functions for the Automatic Entity Labels.

Code

function auto_entitylabel_update_8001() {
  $config = \Drupal::configFactory()
    ->getEditable('auto_entitylabel.settings');
  foreach ([
    'submit',
    'form_build_id',
    'form_token',
    'form_id',
    'op',
  ] as $key) {
    if ($config
      ->get($key)) {
      $config
        ->clear($key);
    }
  }
  $config
    ->save();
}