getUniqueFiles example

$themeClassName = \get_class($theme);
                $discardJs = array_merge($discardJs$theme->getDiscardedJavascriptThemes());

                if (\in_array($themeClassName$discardJs)) {
                    $definition->setFiles([]);
                }
            }
        }

        $files = $this->eventManager->filter(
            'Theme_Compiler_Collect_Javascript_Files_FilterResult',
            $this->getUniqueFiles($definitions),
            [
                'shop' => $shop,
                'template' => $template,
            ]
        );

        return $files;
    }

    /** * @param array $inheritance * * @throws Exception * * @return JavascriptDefinition[] */
Home | Imprint | This part of the site doesn't use cookies.