You are here

function onlyone_update_8001 in Allow a content type only once (Only One) 8

Set the default value for the new variable onlyone_redirect.

See also

https://www.drupal.org/project/onlyone/issues/3104005

File

./onlyone.install, line 13
Install, update and uninstall functions.

Code

function onlyone_update_8001() {
  \Drupal::service('config.factory')
    ->getEditable('onlyone.settings')
    ->set('onlyone_redirect', TRUE)
    ->save();
}