Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
addData (array $arr) | |
setData ($key, $value=null) | |
Interface \Magento\Widget\Block\BlockInterface
Definition at line 18 of file BlockInterface.php.
addData | ( | array | $arr | ) |
Add data to the widget. Retains previous data in the widget.
array | $arr |
setData | ( | $key, | |
$value = null |
|||
) |
Overwrite data in the widget.
Param $key can be string or array. If $key is string, the attribute value will be overwritten by $value. If $key is an array, it will overwrite all the data in the widget.
string | array | $key | |
mixed | $value |