getFilepaths example

'SELECT theme.technical_name as technicalName, LOWER(HEX(theme.id)) as parentThemeId FROM theme'
        );

        return $result;
    }

    private function isDependentTheme(
        StorefrontPluginConfiguration $parentConfig,
        StorefrontPluginConfiguration $currentThemeConfig
    ): bool {
        return $currentThemeConfig->getTechnicalName() !== $parentConfig->getTechnicalName()
            && \in_array('@' . $parentConfig->getTechnicalName()$currentThemeConfig->getStyleFiles()->getFilepaths(), true)
        ;
    }

    /** * @param array<int|string, mixed> $field */
    private function hasNewMedia(array $field): bool
    {
        return \array_key_exists('type', $field) && $field['type'] === 'media'
            && \array_key_exists('value', $field) && \is_string($field['value']);
    }

    
$configCollection->add($storefront);
        $configCollection->add($plugin);

        $themeFileResolver = new ThemeFileResolver(new ThemeFileImporter($projectDir));
        $resolvedFiles = $themeFileResolver->resolveFiles(
            $config,
            $configCollection,
            false
        );
        /** @var FileCollection $scriptFiles */
        $scriptFiles = $resolvedFiles['script'];
        $actual = $scriptFiles->getFilepaths();
        $expected = array_unique($scriptFiles->getFilepaths());

        static::assertEquals($expected$actual);
    }

    public function testParentThemeIncludesPlugins(): void
    {
        $projectDir = $this->getContainer()->getParameter('kernel.project_dir');

        $themePluginBundle = new ThemeNotIncludingPluginJsAndCss();
        $storefrontBundle = new MockStorefront();
        
if (!$config) {
            return [];
        }

        return array_map(function Dstring $path) {
            if (mb_strpos($path$this->projectDir) === 0) {
                // make relative                 $path = ltrim(mb_substr($pathmb_strlen($this->projectDir)), '/');
            }

            return $path;
        }$config->getStyleFiles()->getFilepaths());
    }

    private function asSnakeCase(string $string): string
    {
        return (new CamelCaseToSnakeCaseNameConverter())->normalize($string);
    }

    private function getActivePlugins(): array
    {
        $activePlugins = $this->kernel->getPluginLoader()->getPluginInstances()->getActives();

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