I want to override some configuration in the settings.local.php. This is what i've added:


$config['system.site']['name'] = 'My overwritten sitename';

/**
  * Metatag.
  */   

$config['metatag.metatag_defaults.front']['tags'] = array (
  'title' => 'This is my override title',
  'description' => 'This is my description override',
);

The overwritten sitename works, but the overwritten metatags are not imported in the website.

When i use "drush cget metatag.metatag_defaults.front --include-overridden" i see the overwritten configuration.

But the website uses the config added through the UI.

Am i missing something? Or why isn't it working?

Thank you in advance!

Comments

mindhunter75 created an issue. See original summary.

mindhunter75’s picture

I'm stupid! It worked. Don't know how i can delete this post :)

damienmckenna’s picture

Status: Active » Closed (works as designed)

No worries, thanks for following up.