Core Entity Config

Sometimes you need to associate a Website / Language / Locale / Country / Application with some value and don’t want to build a separate admin UI for it.

You can attach arbitrary (scalar) config to every of the above linked entities and act on it when rendering the page. A typical use case is some key for an external config, that needs to differ between the applications.

A missing config value in a website will fall back on the config value of the application.

$website->getConfigValue("google-analytics.key");
$application->getConfigValue("theme");