Class

eZ\Bundle\EzPublishCoreBundle\FieldType\RichText\Converter\Html5Edit

class Html5Edit extends Xslt

Adds ConfigResolver awareness to the Xslt converter.

Methods

__construct(string $stylesheet, ConfigResolverInterface $configResolver)

Constructor.

DOMDocument convert(DOMDocument $document)

Performs conversion of the given $document using XSLT stylesheet.

from Xslt

Details

at line 19
public __construct(string $stylesheet, ConfigResolverInterface $configResolver)

Constructor.

Parameters

string $stylesheet Stylesheet to use for conversion
ConfigResolverInterface $configResolver

in Xslt at line 123
public DOMDocument convert(DOMDocument $document)

Performs conversion of the given $document using XSLT stylesheet.

Parameters

DOMDocument $document

Return Value

DOMDocument

Exceptions

InvalidArgumentException if stylesheet is not found
InvalidArgumentException if document does not transform