Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
UniversalFactory.php
Go to the documentation of this file.
1 <?php
13 
15 {
19  protected $_objectManager;
20 
25  {
26  $this->_objectManager = $objectManager;
27  }
28 
34  public function create($className, array $arguments = [])
35  {
36  return $this->_objectManager->create($className, $arguments);
37  }
38 }
$objectManager
Definition: bootstrap.php:17
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
create($className, array $arguments=[])
$arguments
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31