File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/code/Magento/PageBuilder Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
/**
15
15
* Validates "src" of iframes.
16
16
*/
17
- class SrcAttributeValidator implements AttributeValidatorInterface
17
+ class IframeSrcAttributeValidator implements AttributeValidatorInterface
18
18
{
19
19
/**
20
20
* @var string[]
21
21
*/
22
22
private $ allowedHosts ;
23
23
24
24
/**
25
- * SrcAttributeValidator constructor.
25
+ * IframeSrcAttributeValidator constructor.
26
26
*
27
27
* @param string[] $allowedHosts
28
28
*/
Original file line number Diff line number Diff line change 338
338
<argument name =" instanceName" xsi : type =" string" >Magento\PageBuilder\Model\Dom\HtmlDocument</argument >
339
339
</arguments >
340
340
</virtualType >
341
- <type name =" Magento\PageBuilder\Model\Validator\SrcAttributeValidator " >
341
+ <type name =" Magento\PageBuilder\Model\Validator\IframeSrcAttributeValidator " >
342
342
<arguments >
343
343
<argument name =" allowedHosts" xsi : type =" array" >
344
344
<item name =" youtube" xsi : type =" string" >youtube.com</item >
405
405
</argument >
406
406
<argument name =" attributeValidators" xsi : type =" array" >
407
407
<item name =" src" xsi : type =" array" >
408
- <item name =" iframe-src" xsi : type =" object" >Magento\PageBuilder\Model\Validator\SrcAttributeValidator </item >
408
+ <item name =" iframe-src" xsi : type =" object" >Magento\PageBuilder\Model\Validator\IframeSrcAttributeValidator </item >
409
409
</item >
410
410
</argument >
411
411
<argument name =" tagValidators" xsi : type =" array" >
You can’t perform that action at this time.
0 commit comments