Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Html5Input.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Bundle\EzPublishCoreBundle\FieldType\RichText\Converter;
8
9 use eZ\Publish\Core\FieldType\RichText\Converter\Xslt as XsltConverter;
10 use eZ\Publish\Core\MVC\ConfigResolverInterface;
11
15 class Html5Input extends XsltConverter
16 {
17 public function __construct($stylesheet, ConfigResolverInterface $configResolver)
18 {
19 $customStylesheets = $configResolver->getParameter('fieldtypes.ezrichtext.input_custom_xsl');
20 $customStylesheets = $customStylesheets ?: [];
21 parent::__construct($stylesheet, $customStylesheets);
22 }
23 }
eZ\Bundle\EzPublishCoreBundle\FieldType\RichText\Converter\Html5Input
Adds ConfigResolver awareness to the Xslt converter.
Definition: Html5Input.php:16
eZ\Bundle\EzPublishCoreBundle\FieldType\RichText\Converter\Html5Input\__construct
__construct($stylesheet, ConfigResolverInterface $configResolver)
Definition: Html5Input.php:17
eZ\Publish\Core\FieldType\RichText\Converter\Xslt
Converts DOMDocument objects using XSLT stylesheets.
Definition: Xslt.php:22
eZ\Publish\Core\FieldType\RichText\Converter\Xslt\$customStylesheets
$customStylesheets
Definition: Xslt.php:35
eZ\Publish\Core\FieldType\RichText\Converter\Xslt\$stylesheet
$stylesheet
Definition: Xslt.php:28
eZ\Publish\Core\MVC\ConfigResolverInterface
Interface for config resolvers.
Definition: ConfigResolverInterface.php:19
eZ\Publish\Core\MVC\ConfigResolverInterface\getParameter
getParameter($paramName, $namespace=null, $scope=null)
Returns value for $paramName, in $namespace.
eZ\Bundle\EzPublishCoreBundle\FieldType\RichText\Converter
Definition: Html5.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.