bundle/DependencyInjection/Compiler/XmlTextFieldTypePass.php
public function process(ContainerBuilder $container): void
    {
        if ($container->has('ezpublish.fieldType.ezxmltext.converter.embedToHtml5')) {
            $container
                ->findDefinition('ezpublish.fieldType.ezxmltext.converter.embedToHtml5')
                ->setClass(EmbedToHtml5::class)
                ->addMethodCall('setSite', [new Reference('netgen.ezplatform_site.site')]);
        }
    }
public function process(ContainerBuilder $container): void
    {
        if ($container->has('ezpublish.fieldType.ezxmltext.converter.embedToHtml5')) {
            $container
                ->findDefinition('ezpublish.fieldType.ezxmltext.converter.embedToHtml5')
                ->setClass(EmbedToHtml5::class)
                ->addMethodCall('setSite', [new Reference('netgen.ezplatform_site.site')]);
        }
    }
public function process ( ContainerBuilder $ container ) : void { if ( $ container -> has ( 'ezpublish.fieldType.ezxmltext.converter.embedToHtml5' ) ) { $ container -> findDefinition ( 'ezpublish.fieldType.ezxmltext.converter.embedToHtml5' ) -> setClass ( EmbedToHtml5 :: class ) -> addMethodCall ( 'setSite' , [ new Reference ( 'netgen.ezplatform_site.site' ) ] ) ; } }
Overrides EmbedToHtml5 ezxmltext converter with own implementation.
Overrides EmbedToHtml5 ezxmltext converter with own implementation .