Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog
Test
Unit
Model
ProductOptions
Config
_files
invalidProductOptionsXmlArray.php
Go to the documentation of this file.
1
<?php
6
return
[
7
'options_node_is_required'
=> [
8
'<?xml version="1.0"?><config><inputType name="name_one" /></config>'
,
9
[
"Element 'inputType': This element is not expected. Expected is ( option ).\nLine: 1\n"
],
10
],
11
'inputType_node_is_required'
=> [
12
'<?xml version="1.0"?><config><option name="name_one"/></config>'
,
13
[
"Element 'option': Missing child element(s). Expected is ( inputType ).\nLine: 1\n"
],
14
],
15
'options_name_must_be_unique'
=> [
16
'<?xml version="1.0"?><config><option name="name_one"><inputType name="name"/>'
.
17
'</option><option name="name_one"><inputType name="name_two"/></option></config>'
,
18
[
19
"Element 'option': Duplicate key-sequence ['name_one'] in unique identity-constraint "
.
20
"'uniqueOptionName'.\nLine: 1\n"
21
],
22
],
23
'inputType_name_must_be_unique'
=> [
24
'<?xml version="1.0"?><config><option name="name"><inputType name="name_one"/>'
.
25
'<inputType name="name_one"/></option></config>'
,
26
[
27
"Element 'inputType': Duplicate key-sequence ['name_one'] in unique identity-constraint "
.
28
"'uniqueInputTypeName'.\nLine: 1\n"
29
],
30
],
31
'renderer_attribute_with_invalid_value'
=> [
32
'<?xml version="1.0"?><config><option name="name_one" renderer="true12"><inputType name="name_one"/>'
.
33
'</option></config>'
,
34
[
35
"Element 'option', attribute 'renderer': [facet 'pattern'] The value 'true12' is not accepted by the "
.
36
"pattern '[a-zA-Z_\\\\]+'.\nLine: 1\n"
,
37
"Element 'option', attribute 'renderer': 'true12' is not a valid value of the atomic"
.
38
" type 'modelName'.\nLine: 1\n"
39
],
40
],
41
'disabled_attribute_with_invalid_value'
=> [
42
'<?xml version="1.0"?><config><option name="name_one"><inputType name="name_one" disabled="7"/>'
.
43
'<inputType name="name_two" disabled="some_string"/></option></config>'
,
44
[
45
"Element 'inputType', attribute 'disabled': '7' is not a valid value of the atomic type"
.
46
" 'xs:boolean'.\nLine: 1\n"
,
47
"Element 'inputType', attribute 'disabled': 'some_string' is not a valid value of the atomic type "
.
48
"'xs:boolean'.\nLine: 1\n"
49
],
50
]
51
];