|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (ContextInterface $context, array $components=[], array $data=[]) | |
| getContext () | |
| getName () | |
| prepare () | |
| toHtml () | |
| render () | |
| addComponent ($name, UiComponentInterface $component) | |
| getComponent ($name) | |
| getChildComponents () | |
| renderChildComponent ($name) | |
| getTemplate () | |
| getConfiguration () | |
| getJsConfig (UiComponentInterface $component) | |
| setData ($key, $value=null) | |
| getData ($key='', $index=null) | |
| prepareDataSource (array $dataSource) | |
| getDataSourceData () | |
Public Member Functions inherited from DataObject | |
| __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) | |
Public Member Functions inherited from UiComponentInterface | |
| getComponentName () | |
Protected Member Functions | |
| prepareChildComponent (UiComponentInterface $component) | |
| initObservers (array & $data=[]) | |
Protected Member Functions inherited from DataObject | |
| _getData ($key) | |
| _underscore ($name) | |
Protected Attributes | |
| $context | |
| $components | |
| $componentData = [] | |
| $dataSources = [] | |
Protected Attributes inherited from DataObject | |
| $_data = [] | |
Additional Inherited Members | |
Static Protected Attributes inherited from DataObject | |
| static | $_underscoreCache = [] |
Abstract class AbstractComponent
@api @SuppressWarnings(PHPMD.NumberOfChildren)
Definition at line 24 of file AbstractComponent.php.
| __construct | ( | ContextInterface | $context, |
| array | $components = [], |
||
| array | $data = [] |
||
| ) |
Constructor
| ContextInterface | $context | |
| UiComponentInterface[] | $components | |
| array | $data |
Definition at line 55 of file AbstractComponent.php.
| addComponent | ( | $name, | |
| UiComponentInterface | $component | ||
| ) |
Add component
| string | $name | |
| UiComponentInterface | $component |
Implements UiComponentInterface.
Definition at line 170 of file AbstractComponent.php.
| getChildComponents | ( | ) |
Get components
Implements UiComponentInterface.
Definition at line 189 of file AbstractComponent.php.
| getComponent | ( | $name | ) |
| string | $name |
Implements UiComponentInterface.
Definition at line 179 of file AbstractComponent.php.
| getConfiguration | ( | ) |
Get component configuration
Implements UiComponentInterface.
Definition at line 224 of file AbstractComponent.php.
| getContext | ( | ) |
Get component context
Implements UiComponentInterface.
Definition at line 71 of file AbstractComponent.php.
| getData | ( | $key = '', |
|
$index = null |
|||
| ) |
Component data getter
| string | $key | |
| string | int | $index |
Implements UiComponentInterface.
Definition at line 264 of file AbstractComponent.php.
| getDataSourceData | ( | ) |
{Get Data Source data
Implements UiComponentInterface.
Definition at line 283 of file AbstractComponent.php.
| getJsConfig | ( | UiComponentInterface | $component | ) |
Get configuration of related JavaScript Component (force extending the root component if component does not extend other component)
| UiComponentInterface | $component |
Definition at line 236 of file AbstractComponent.php.
| getName | ( | ) |
Get component name
Implements UiComponentInterface.
Definition at line 81 of file AbstractComponent.php.
| getTemplate | ( | ) |
Get template
Implements UiComponentInterface.
Definition at line 214 of file AbstractComponent.php.
|
protected |
Initiate observers
| array | $data |
Definition at line 294 of file AbstractComponent.php.
| prepare | ( | ) |
Prepare component configuration
Implements UiComponentInterface.
Definition at line 91 of file AbstractComponent.php.
|
protected |
Call prepare method in the component UI
| UiComponentInterface | $component |
Definition at line 129 of file AbstractComponent.php.
| prepareDataSource | ( | array | $dataSource | ) |
Prepare Data Source
| array | $dataSource |
Implements UiComponentInterface.
Definition at line 275 of file AbstractComponent.php.
| render | ( | ) |
Render component
Implements UiComponentInterface.
Definition at line 157 of file AbstractComponent.php.
| renderChildComponent | ( | $name | ) |
Render child component
| string | $name |
Implements UiComponentInterface.
Definition at line 200 of file AbstractComponent.php.
| setData | ( | $key, | |
$value = null |
|||
| ) |
Component data setter
| string | array | $key | |
| mixed | $value |
Implements UiComponentInterface.
Definition at line 252 of file AbstractComponent.php.
| toHtml | ( | ) |
Produce and return block's html output
Implements BlockInterface.
Definition at line 147 of file AbstractComponent.php.
|
protected |
Definition at line 41 of file AbstractComponent.php.
|
protected |
Definition at line 36 of file AbstractComponent.php.
|
protected |
Definition at line 31 of file AbstractComponent.php.
|
protected |
Definition at line 46 of file AbstractComponent.php.