onlyone.install in Allow a content type only once (Only One) 8
Same filename and directory in other branches
Install, update and uninstall functions.
File
onlyone.installView source
<?php
/**
* @file
* Install, update and uninstall functions.
*/
/**
* Set the default value for the new variable onlyone_redirect.
*
* @see https://www.drupal.org/project/onlyone/issues/3104005
*/
function onlyone_update_8001() {
\Drupal::service('config.factory')
->getEditable('onlyone.settings')
->set('onlyone_redirect', TRUE)
->save();
}
Functions
Name | Description |
---|---|
onlyone_update_8001 | Set the default value for the new variable onlyone_redirect. |