Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\Controller\Result\Json::class) | |
create (array $data=[]) | |
Protected Attributes | |
$objectManager = null | |
$instanceName = null | |
Factory class for
Definition at line 12 of file JsonFactory.php.
__construct | ( | \Magento\Framework\ObjectManagerInterface | $objectManager, |
$instanceName = \Magento\Framework\Controller\Result\Json::class |
|||
) |
Factory constructor
\Magento\Framework\ObjectManagerInterface | $objectManager | |
string | $instanceName |
Definition at line 34 of file JsonFactory.php.
create | ( | array | $data = [] | ) |
Create class instance with specified parameters
array | $data |
Definition at line 48 of file JsonFactory.php.
|
protected |
Definition at line 26 of file JsonFactory.php.
|
protected |
Definition at line 19 of file JsonFactory.php.