bundle/DependencyInjection/Compiler/XslRegisterPass.php
public function process(ContainerBuilder $container): void
    {
        $scopes = array_merge(
            [ConfigResolver::SCOPE_DEFAULT],
            $container->getParameter('ezpublish.siteaccess.list')
        );

        // Adding ezxml_tags.xsl to all scopes
        foreach ($scopes as $scope) {
            if (!$container->hasParameter("ezsettings.${scope}.fieldtypes.ezxml.custom_xsl")) {
                continue;
            }

            $xslConfig = $container->getParameter("ezsettings.${scope}.fieldtypes.ezxml.custom_xsl");
            $xslConfig[] = ['path' => __DIR__ . '/../../Resources/xsl/ezxml_tags.xsl', 'priority' => 5000];
            $container->setParameter("ezsettings.${scope}.fieldtypes.ezxml.custom_xsl", $xslConfig);
        }
    }
public function process(ContainerBuilder $container): void
    {
        $scopes = array_merge(
            [ConfigResolver::SCOPE_DEFAULT],
            $container->getParameter('ezpublish.siteaccess.list')
        );

        // Adding ezxml_tags.xsl to all scopes
        foreach ($scopes as $scope) {
            if (!$container->hasParameter("ezsettings.${scope}.fieldtypes.ezxml.custom_xsl")) {
                continue;
            }

            $xslConfig = $container->getParameter("ezsettings.${scope}.fieldtypes.ezxml.custom_xsl");
            $xslConfig[] = ['path' => __DIR__ . '/../../Resources/xsl/ezxml_tags.xsl', 'priority' => 5000];
            $container->setParameter("ezsettings.${scope}.fieldtypes.ezxml.custom_xsl", $xslConfig);
        }
    }
public function process ( ContainerBuilder $ container ) : void { $ scopes = array_merge ( [ ConfigResolver :: SCOPE_DEFAULT ] , $ container -> getParameter ( 'ezpublish.siteaccess.list' ) ) ; // Adding ezxml_tags.xsl to all scopes foreach ( $ scopes as $ scope ) { if ( ! $ container -> hasParameter ( "ezsettings.${scope}.fieldtypes.ezxml.custom_xsl" ) ) { continue ; } $ xslConfig = $ container -> getParameter ( "ezsettings.${scope}.fieldtypes.ezxml.custom_xsl" ) ; $ xslConfig [ ] = [ 'path' => __DIR__ . '/../../Resources/xsl/ezxml_tags.xsl' , 'priority' => 5000 ] ; $ container -> setParameter ( "ezsettings.${scope}.fieldtypes.ezxml.custom_xsl" , $ xslConfig ) ; } }
Registers ezxml_tags.xsl as custom XSL stylesheet for ezxmltext field type.
Registers ezxml_tags . xsl as custom XSL stylesheet for ezxmltext field type .