You are here

function scheduled_transitions_update_8001 in Scheduled Transitions 2.x

Same name and namespace in other branches
  1. 8 scheduled_transitions.install \scheduled_transitions_update_8001()

Adds message template config.

Parameters

array $sandbox: Sandbox.

File

./scheduled_transitions.install, line 18

Code

function scheduled_transitions_update_8001(array &$sandbox) : void {
  $configFactory = \Drupal::configFactory();
  $configFactory
    ->getEditable('scheduled_transitions.settings')
    ->set('message_transition_latest', 'Scheduled transition: transitioning latest revision from [scheduled-transitions:from-state] to [scheduled-transitions:to-state]')
    ->set('message_transition_historical', 'Scheduled transition: Copied revision #[scheduled-transitions:from-revision-id] and changed from [scheduled-transitions:from-state] to [scheduled-transitions:to-state]')
    ->set('message_transition_copy_latest_draft', 'Scheduled transition: reverted [scheduled-transitions:latest-state] revision #[scheduled-transitions:latest-revision-id] back to top')
    ->save(TRUE);
}