Emfasi-Developer
4/19/2018 - 11:15 AM

Load site configuration

Save in variables 'Name site' and 'Slogan site'

<?php 

function THEME_preprocess(&$variables, $hook)
{
	$site_config = \Drupal::config('system.site');
  $variables['site_name'] = $site_config->get('name');
  $variables['site_slogan'] = $site_config->get('slogan');
}

?>