You are here

function pathauto_update_8107 in Pathauto 8

Initialize the new safe tokens setting.

File

./pathauto.install, line 284
Install, update, and uninstall functions for Pathauto.

Code

function pathauto_update_8107() {
  $safe_tokens = [
    'alias',
    'alias',
    'path',
    'join-path',
    'login-url',
    'url',
    'url-brief',
  ];
  \Drupal::configFactory()
    ->getEditable('pathauto.settings')
    ->set('safe_tokens', $safe_tokens)
    ->save();
}