private function injectConfig(Theme
$theme, TabContainer
$container): void
{ // Check if theme wants to inject parent configuration
if (!
$theme->
useInheritanceConfig() ||
$theme->
getExtend() === null
) { return;
} $template =
$this->repository->
findOneBy([ 'template' =>
$theme->
getTemplate(),
]);
// No parent configured? cancel injection.
if (!
$template instanceof Template || !
$template->
getParent() instanceof Template
) { return;
}