getThemeDefinition example


            if ($directory->isDot() || !$directory->isDir() || $directory->getFilename() === '_cache') {
                continue;
            }

            try {
                $theme = $this->util->getThemeByDirectory($directory);
            } catch (Exception $e) {
                continue;
            }

            $data = $this->getThemeDefinition($theme);

            $template = $this->repository->findOneBy([
                'template' => $theme->getTemplate(),
            ]);

            if (!$template instanceof Template) {
                $template = new Template();

                if ($plugin) {
                    $template->setPlugin($plugin);
                }

                
Home | Imprint | This part of the site doesn't use cookies.