Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
invalidImportMergedXmlArray.php File Reference

Go to the source code of this file.

Variables

 return ['entity_without_required_name'=> ['<?xml version="1.0"?>< config >< entity label="test" model="test" behaviorModel="test"/></config >', ["Element 'entity': The attribute 'name' is required but missing.\nLine: 1\n"],], 'entity_without_required_label'=> ['<?xml version="1.0"?>< config >< entity name="test_name" model="test" behaviorModel="test"/></config >', ["Element 'entity': The attribute 'label' is required but missing.\nLine: 1\n"],], 'entity_without_required_behaviormodel'=> ['<?xml version="1.0"?>< config >< entity name="test_name" label="test_label" model="test"/></config >', ["Element 'entity': The attribute 'behaviorModel' is required but missing.\nLine: 1\n"],], 'entity_without_required_model'=> ['<?xml version="1.0"?>< config >< entity name="test_name" label="test_label" behaviorModel="test"/></config >', ["Element 'entity': The attribute 'model' is required but missing.\nLine: 1\n"],], 'entity_with_notallowed_atrribute'=> ['<?xml version="1.0"?>< config >< entity name="test_name" label="test_label" ' . 'model="test" behaviorModel="test" notallowed="text"/></config >', ["Element 'entity', attribute 'notallowed': The attribute 'notallowed' is not allowed.\nLine: 1\n"],], 'entity_model_with_invalid_value'=> ['<?xml version="1.0"?>< config >< entity name="test_name" label="test_label" model="afwer34" ' . 'behaviorModel="test"/></config >', ["Element 'entity', attribute 'model': [facet 'pattern'] The value 'afwer34' is not " . "accepted by the pattern '[A-Za-z_\\\\]+'.\nLine: 1\n", "Element 'entity', attribute 'model': 'afwer34' is not a valid value of the atomic type" . " 'modelName'.\nLine: 1\n"],], 'entity_behaviorModel_with_invalid_value'=> ['<?xml version="1.0"?>< config >< entity name="test_name" label="test_label" model="test" behaviorModel="666"/>' . '</config >', ["Element 'entity', attribute 'behaviorModel': [facet 'pattern'] The value '666' is not accepted by " . "the pattern '[A-Za-z_\\\\]+'.\nLine: 1\n", "Element 'entity', attribute 'behaviorModel': '666' is not a valid value of the atomic type" . " 'modelName'.\nLine: 1\n"],]]
 

Variable Documentation

◆ return

return[ 'entity_without_required_name'=> [ '<?xml version="1.0"?>< config >< entity label="test" model="test" behaviorModel="test"/></config >', ["Element 'entity': The attribute 'name' is required but missing.\nLine: 1\n"],], 'entity_without_required_label'=> [ '<?xml version="1.0"?>< config >< entity name="test_name" model="test" behaviorModel="test"/></config >', ["Element 'entity': The attribute 'label' is required but missing.\nLine: 1\n"],], 'entity_without_required_behaviormodel'=> [ '<?xml version="1.0"?>< config >< entity name="test_name" label="test_label" model="test"/></config >', ["Element 'entity': The attribute 'behaviorModel' is required but missing.\nLine: 1\n"],], 'entity_without_required_model'=> [ '<?xml version="1.0"?>< config >< entity name="test_name" label="test_label" behaviorModel="test"/></config >', ["Element 'entity': The attribute 'model' is required but missing.\nLine: 1\n"],], 'entity_with_notallowed_atrribute'=> [ '<?xml version="1.0"?>< config >< entity name="test_name" label="test_label" ' . 'model="test" behaviorModel="test" notallowed="text"/></config >', ["Element 'entity', attribute 'notallowed': The attribute 'notallowed' is not allowed.\nLine: 1\n"],], 'entity_model_with_invalid_value'=> [ '<?xml version="1.0"?>< config >< entity name="test_name" label="test_label" model="afwer34" ' . 'behaviorModel="test"/></config >', [ "Element 'entity', attribute 'model': [facet 'pattern'] The value 'afwer34' is not " . "accepted by the pattern '[A-Za-z_\\\\]+'.\nLine: 1\n", "Element 'entity', attribute 'model': 'afwer34' is not a valid value of the atomic type" . " 'modelName'.\nLine: 1\n"],], 'entity_behaviorModel_with_invalid_value'=> [ '<?xml version="1.0"?>< config >< entity name="test_name" label="test_label" model="test" behaviorModel="666"/>' . '</config >', [ "Element 'entity', attribute 'behaviorModel': [facet 'pattern'] The value '666' is not accepted by " . "the pattern '[A-Za-z_\\\\]+'.\nLine: 1\n", "Element 'entity', attribute 'behaviorModel': '666' is not a valid value of the atomic type" . " 'modelName'.\nLine: 1\n"],]]

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Definition at line 48 of file invalidImportMergedXmlArray.php.