Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
build () | |
withElementType ($elementType) | |
withFields ($fields) | |
withKey ($key) | |
withType ($type) | |
addElements ($elementsToAdd) | |
addFields ($fieldsToAdd) | |
withNestedElements ($nestedElements) | |
Static Public Member Functions | |
static | buildOperationElementFields ($fields) |
Definition at line 11 of file OperationElementBuilder.php.
addElements | ( | $elementsToAdd | ) |
Adds a set of new Operation Elements to the nested metadata.
array | $elementsToAdd |
Definition at line 140 of file OperationElementBuilder.php.
addFields | ( | $fieldsToAdd | ) |
Adds a new set of fields (value => type) into an object parameter to be converted to Operation Elements.
array | $fieldsToAdd |
Definition at line 155 of file OperationElementBuilder.php.
build | ( | ) |
Build function which takes params defined by the user and returns a new Operation Element.
Definition at line 74 of file OperationElementBuilder.php.
|
static |
Takes an array of fields (value => type) and returns an array of Operations Elements of type field.
array | $fields |
Definition at line 182 of file OperationElementBuilder.php.
withElementType | ( | $elementType | ) |
Sets a new element type, overwrites any existing.
string | $elementType |
Definition at line 92 of file OperationElementBuilder.php.
withFields | ( | $fields | ) |
Set a new set of fields or operation elements
array | $fields |
Definition at line 104 of file OperationElementBuilder.php.
withKey | ( | $key | ) |
Sets a key for the operation element. See ref to param key for explanation.
string | $key |
Definition at line 116 of file OperationElementBuilder.php.
withNestedElements | ( | $nestedElements | ) |
Sets an array nested elements to an object property.
array | $nestedElements |
Definition at line 170 of file OperationElementBuilder.php.
withType | ( | $type | ) |
Sets a type for the operation element. See ref to param type for explanation.
string | $type |
Definition at line 128 of file OperationElementBuilder.php.