You are here

function scheduled_transitions_update_8002 in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x scheduled_transitions.install \scheduled_transitions_update_8002()

Adds mirror to other operations config.

Parameters

array $sandbox: Sandbox.

File

./scheduled_transitions.install, line 33

Code

function scheduled_transitions_update_8002(array &$sandbox) : void {
  $configFactory = \Drupal::configFactory();
  $configFactory
    ->getEditable('scheduled_transitions.settings')
    ->set('mirror_operations.view scheduled transition', 'update')
    ->set('mirror_operations.add scheduled transition', 'update')
    ->save(TRUE);
}