You are here

function copyright_block_update_8100 in Copyright Block module 8

Fix "seperator" typos.

File

./copyright_block.install, line 11
Install, update and uninstall functions for copyright_block.

Code

function copyright_block_update_8100() {
  $config = \Drupal::configFactory()
    ->getEditable('copyright_block.settings');

  // Copy the value from the original config value to the new one, then remove
  // the original.
  $config
    ->set('separator', $config
    ->get('seperator'))
    ->save();
  $config
    ->clear('seperator')
    ->save();
}