Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AttributeFactory.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Eav\Model;
7 
16 {
20  protected $_objectManager;
21 
26  {
27  $this->_objectManager = $objectManager;
28  }
29 
37  public function createAttribute($className, $arguments = [])
38  {
39  return $this->_objectManager->create($className, ['data' => $arguments]);
40  }
41 }
__construct(\Magento\Framework\ObjectManagerInterface $objectManager)
$objectManager
Definition: bootstrap.php:17
createAttribute($className, $arguments=[])
$arguments
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31