Skip to content
Snippets Groups Projects
Commit 604d1b25 authored by Stephen Mustgrave's avatar Stephen Mustgrave
Browse files

Issue #3470682 by thejimbirch: Tour and No Tour available button labels should...

parent f911ac2d
No related branches found
No related tags found
1 merge request!53Issue #3470682 by thejimbirch: Tour and No Tour available button labels should...
Pipeline #267446 passed
......@@ -128,3 +128,21 @@ function tour_update_10303(): void {
->set('tour_no_avail_text', 'No tour available for this page.')
->save();
}
/**
* Import tour configure settings attempt 2.
*/
function tour_update_10304(): void {
// Import the config & set default value.
$config = \Drupal::configFactory()->getEditable('tour.settings');
if (!$config->get('tour_avail_text')) {
$config->set('tour_avail_text', 'Take a tour of this page.');
}
if (!$config->get('tour_no_avail_text')) {
$config->set('tour_no_avail_text', 'No tour available for this page.');
}
$config->save();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment