37 $instanceName = self::DEFAULT_INSTANCE_NAME
40 $this->_instanceName = $instanceName;
50 public function create(array
$data = [], $instanceName =
null)
52 if (
null === $instanceName) {
53 return $this->_objectManager->create($this->_instanceName,
$data);
55 return $this->_objectManager->create($instanceName,
$data);
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=self::DEFAULT_INSTANCE_NAME)
const DEFAULT_INSTANCE_NAME
create(array $data=[], $instanceName=null)