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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $category = $objectManager->create(\Magento\Catalog\Model\Category::class)
 
 $website = $objectManager->create(\Magento\Store\Model\Website::class)
 
 $groupId
 
 $store
 
 $entityTypeCode = 'catalog_product'
 
 $entityType = $objectManager->create(\Magento\Eav\Model\Entity\Type::class)->loadByCode($entityTypeCode)
 
 $defaultSetId = $entityType->getDefaultAttributeSetId()
 
 $attributeSet = $objectManager->create(\Magento\Eav\Model\Entity\Attribute\Set::class)
 
 $data
 

Variable Documentation

◆ $attributeSet

$attributeSet = $objectManager->create(\Magento\Eav\Model\Entity\Attribute\Set::class)

Definition at line 40 of file custom_category_store_media_disabled.php.

◆ $category

$category = $objectManager->create(\Magento\Catalog\Model\Category::class)

Definition at line 11 of file custom_category_store_media_disabled.php.

◆ $data

$data
Initial value:
= [
'attribute_set_name' => 'vinos',
'entity_type_id' => $entityType->getId(),
'sort_order' => 200,
]

Definition at line 41 of file custom_category_store_media_disabled.php.

◆ $defaultSetId

$defaultSetId = $entityType->getDefaultAttributeSetId()

Definition at line 38 of file custom_category_store_media_disabled.php.

◆ $entityType

$entityType = $objectManager->create(\Magento\Eav\Model\Entity\Type::class)->loadByCode($entityTypeCode)

Definition at line 37 of file custom_category_store_media_disabled.php.

◆ $entityTypeCode

$entityTypeCode = 'catalog_product'

Definition at line 36 of file custom_category_store_media_disabled.php.

◆ $groupId

$groupId
Initial value:
= $objectManager->get(\Magento\Store\Model\StoreManagerInterface::class)
->getWebsite()
->getDefaultGroupId()

Definition at line 24 of file custom_category_store_media_disabled.php.

◆ $objectManager

Definition at line 8 of file custom_category_store_media_disabled.php.

◆ $store

$store
Initial value:
= $objectManager->create(\Magento\Store\Model\Store::class)
->setCode('mascota')
->setWebsiteId($website->getId())
->setGroupId($groupId)
->setName('mascota')
->setIsActive(1)
->save()

Definition at line 28 of file custom_category_store_media_disabled.php.

◆ $website

$website = $objectManager->create(\Magento\Store\Model\Website::class)

Definition at line 20 of file custom_category_store_media_disabled.php.