When creating an install script for Magento 2 what values are available for the type and input parts of eavSetup->addAttribute()
? Or where could I look to find out?
$eavSetup->addAttribute(
\Magento\Catalog\Model\Product::ENTITY,
'some_attr',
[
'type' => '',
'backend' => '',
'frontend' => '',
'label' => 'Test Attribute',
'input' => '',
'class' => '',
'source' => '',
'global' => \Magento\Catalog\Model\Resource\Eav\Attribute::SCOPE_GLOBAL,
'visible' => true,
'required' => false,
'user_defined' => false,
'default' => 0,
'searchable' => false,
'filterable' => false,
'comparable' => false,
'visible_on_front' => false,
'used_in_product_listing' => true,
'unique' => false,
'apply_to' => ''
]
);