Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data=[]) | |
addElement (AbstractElement $element, $after=false) | |
isAdvanced () | |
setAdvanced ($advanced) | |
getId () | |
getType () | |
getForm () | |
setId ($id) | |
getHtmlId () | |
getName () | |
setType ($type) | |
setForm ($form) | |
removeField ($elementId) | |
getHtmlAttributes () | |
addClass ($class) | |
removeClass ($class) | |
getEscapedValue ($index=null) | |
setRenderer (RendererInterface $renderer) | |
getRenderer () | |
getElementHtml () | |
getBeforeElementHtml () | |
getAfterElementHtml () | |
getAfterElementJs () | |
getLabelHtml ($idSuffix='', $scopeLabel='') | |
getDefaultHtml () | |
getHtml () | |
toHtml () | |
serialize ($attributes=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
getReadonly () | |
getHtmlContainerId () | |
addElementValues ($values, $overwrite=false) | |
lock () | |
isLocked () | |
![]() | |
__construct (Factory $factoryElement, CollectionFactory $factoryCollection, $data=[]) | |
addType ($type, $className) | |
getElements () | |
setReadonly ($readonly, $useDisabled=false) | |
addElement (AbstractElement $element, $after=null) | |
addField ($elementId, $type, $config, $after=false) | |
removeField ($elementId) | |
addFieldset ($elementId, $config, $after=false, $isAdvanced=false) | |
addColumn ($elementId, $config) | |
convertToArray (array $arrAttributes=[]) | |
addCustomAttribute ($key, $value) | |
serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
![]() | |
__construct (array $data=[]) | |
addData (array $arr) | |
setData ($key, $value=null) | |
unsetData ($key=null) | |
getData ($key='', $index=null) | |
getDataByPath ($path) | |
getDataByKey ($key) | |
setDataUsingMethod ($key, $args=[]) | |
getDataUsingMethod ($key, $args=null) | |
hasData ($key='') | |
toArray (array $keys=[]) | |
convertToArray (array $keys=[]) | |
toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
toJson (array $keys=[]) | |
convertToJson (array $keys=[]) | |
toString ($format='') | |
__call ($method, $args) | |
isEmpty () | |
serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
debug ($data=null, &$objects=[]) | |
offsetSet ($offset, $value) | |
offsetExists ($offset) | |
offsetUnset ($offset) | |
offsetGet ($offset) | |
Protected Member Functions | |
_escape ($string) | |
_getUiId ($suffix=null) | |
![]() | |
_construct () | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
Protected Attributes | |
$_id | |
$_type | |
$_form | |
$_elements | |
$_renderer | |
$_advanced = false | |
$_escaper | |
![]() | |
$_elements | |
$_types = [] | |
$_factoryElement | |
$_factoryCollection | |
$customAttributes = [] | |
![]() | |
$_data = [] | |
Additional Inherited Members | |
![]() | |
static | $_underscoreCache = [] |
__construct | ( | Factory | $factoryElement, |
CollectionFactory | $factoryCollection, | ||
Escaper | $escaper, | ||
$data = [] |
|||
) |
Factory | $factoryElement | |
CollectionFactory | $factoryCollection | |
Escaper | $escaper | |
array | $data |
Definition at line 73 of file AbstractElement.php.
|
protected |
Escape a string's contents.
string | $string |
Definition at line 286 of file AbstractElement.php.
|
protected |
null | string | $suffix |
Definition at line 333 of file AbstractElement.php.
addClass | ( | $class | ) |
Add a class.
string | $class |
Definition at line 257 of file AbstractElement.php.
addElement | ( | AbstractElement | $element, |
$after = false |
|||
) |
Add form element
AbstractElement | $element | |
bool | $after |
Definition at line 91 of file AbstractElement.php.
addElementValues | ( | $values, | |
$overwrite = false |
|||
) |
Add specified values to element values
string | int | array | $values | |
bool | $overwrite |
Definition at line 541 of file AbstractElement.php.
getAfterElementHtml | ( | ) |
getAfterElementJs | ( | ) |
getBeforeElementHtml | ( | ) |
getDefaultHtml | ( | ) |
Get the default html.
Definition at line 437 of file AbstractElement.php.
getElementHtml | ( | ) |
Get the Html for the element.
Definition at line 347 of file AbstractElement.php.
getEscapedValue | ( | $index = null | ) |
Return the escaped value of the element specified by the given index.
null | int | string | $index |
Definition at line 297 of file AbstractElement.php.
getForm | ( | ) |
getHtml | ( | ) |
Get the html.
Definition at line 454 of file AbstractElement.php.
getHtmlAttributes | ( | ) |
getHtmlContainerId | ( | ) |
Get the container Id.
Definition at line 523 of file AbstractElement.php.
getHtmlId | ( | ) |
Get the Html Id.
Definition at line 172 of file AbstractElement.php.
getId | ( | ) |
getLabelHtml | ( | $idSuffix = '' , |
|
$scopeLabel = '' |
|||
) |
Render HTML for element's label
string | $idSuffix | |
string | $scopeLabel |
Definition at line 415 of file AbstractElement.php.
getName | ( | ) |
Get the name.
Definition at line 182 of file AbstractElement.php.
getReadonly | ( | ) |
Indicates the elements readonly status.
Definition at line 509 of file AbstractElement.php.
getRenderer | ( | ) |
Get the renderer.
Definition at line 324 of file AbstractElement.php.
getType | ( | ) |
isAdvanced | ( | ) |
Shows whether current element belongs to Basic or Advanced form layout
Definition at line 107 of file AbstractElement.php.
isLocked | ( | ) |
lock | ( | ) |
removeClass | ( | $class | ) |
Remove CSS class
string | $class |
Definition at line 270 of file AbstractElement.php.
removeField | ( | $elementId | ) |
Remove field
string | $elementId |
Definition at line 220 of file AbstractElement.php.
serialize | ( | $attributes = [] , |
|
$valueSeparator = '=' , |
|||
$fieldSeparator = ' ' , |
|||
$quote = '"' |
|||
) |
Serialize the element.
string[] | $attributes | |
string | $valueSeparator | |
string | $fieldSeparator | |
string | $quote |
Definition at line 486 of file AbstractElement.php.
setAdvanced | ( | $advanced | ) |
Set _advanced layout property
bool | $advanced |
Definition at line 118 of file AbstractElement.php.
setForm | ( | $form | ) |
setId | ( | $id | ) |
Set the Id.
string | int | $id |
Definition at line 160 of file AbstractElement.php.
setRenderer | ( | RendererInterface | $renderer | ) |
Set the renderer.
RendererInterface | $renderer |
Definition at line 313 of file AbstractElement.php.
setType | ( | $type | ) |
Set the type.
string | $type |
Definition at line 197 of file AbstractElement.php.
toHtml | ( | ) |
Get the html.
Definition at line 472 of file AbstractElement.php.
|
protected |
Definition at line 53 of file AbstractElement.php.
|
protected |
Definition at line 41 of file AbstractElement.php.
|
protected |
Definition at line 58 of file AbstractElement.php.
|
protected |
Definition at line 36 of file AbstractElement.php.
|
protected |
Definition at line 26 of file AbstractElement.php.
|
protected |
Definition at line 46 of file AbstractElement.php.
|
protected |
Definition at line 31 of file AbstractElement.php.