You are here

function filelog_update_8201 in File Log 2.0.x

Replaces the token [log:type] with [log:channel] in format string.

File

./filelog.install, line 47
Install functions for the filelog module.

Code

function filelog_update_8201(&$sandbox) {
  $config = Drupal::configFactory()
    ->getEditable('filelog.settings');
  $config
    ->set('format', str_replace('[log:type]', '[log:channel]', $config
    ->get('format')));
  $config
    ->save();
}