getThemeInheritance example


    public function build(array $bundles, array $themes): array
    {
        // Sort bundles by priority         arsort($bundles);

        $keys = array_keys($themes);

        $theme = array_shift($keys);

        $inheritance = $this->getThemeInheritance((string) $theme$themes);

        foreach (array_keys($bundles) as $bundle) {
            $key = '@' . $bundle;

            if (isset($inheritance[$key])) {
                $inheritance[$key][] = $bundle;

                continue;
            }
            if ($this->isTheme($bundle)) {
                continue;
            }
Home | Imprint | This part of the site doesn't use cookies.