Using theme settings in Twig and JavaScript
The demo website uses the copyright notice and the social links in the footer region.

Figure 13.3 – The footer of the demo website
We can update alps_trips_preprocess_region
from the alps_trips.theme
file to use values from the configuration, instead of hardcoding them:
function alps_trips_preprocess_region(&$variables): void { if ($variables['region'] == 'footer') { ... $variables['copyright'] = theme_get_setting('copyright'); $socials = []; if (theme_get_setting('twitter')) { $socials[] = [ 'url' => theme_get_setting('twitter'), 'svg' =>...