Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
select_attribute.php File Reference

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $installer = $objectManager->create(\Magento\Catalog\Setup\CategorySetup::class)
 
 $selectAttribute = $objectManager->create(\Magento\Catalog\Model\ResourceModel\Eav\Attribute::class)
 
 $selectOptions
 
 $selectOptionsIds = $selectOptions->getAllIds()
 

Variable Documentation

◆ $installer

$installer = $objectManager->create(\Magento\Catalog\Setup\CategorySetup::class)

Definition at line 11 of file select_attribute.php.

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 8 of file select_attribute.php.

◆ $selectAttribute

$selectAttribute = $objectManager->create(\Magento\Catalog\Model\ResourceModel\Eav\Attribute::class)

Definition at line 14 of file select_attribute.php.

◆ $selectOptions

$selectOptions
Initial value:
= $objectManager->create(
\Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\Collection::class
)
$objectManager

Definition at line 59 of file select_attribute.php.

◆ $selectOptionsIds

$selectOptionsIds = $selectOptions->getAllIds()

Definition at line 63 of file select_attribute.php.