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

Go to the source code of this file.

Variables

 $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
 
 $entityTypeId
 
 $attributeSet = $objectManager->create(\Magento\Eav\Model\Entity\Attribute\Set::class)
 
 $attributeGroupData
 

Variable Documentation

◆ $attributeGroupData

$attributeGroupData
Initial value:
= [
[
'attribute_set_id' => $attributeSet->getAttributeSetId(),
'sort_order' => 10,
'attribute_group_code' => 'attribute_group_1_for_search',
'default_id' => 1,
],
[
'attribute_set_id' => $attributeSet->getAttributeSetId(),
'sort_order' => 20,
'attribute_group_code' => 'attribute_group_2_for_search',
'default_id' => 0,
],
[
'attribute_set_id' => $attributeSet->getAttributeSetId(),
'sort_order' => 30,
'attribute_group_code' => 'attribute_group_3_for_search',
'default_id' => 0,
],
]

Create attribute groups

Definition at line 29 of file attribute_group_for_search.php.

◆ $attributeSet

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

Definition at line 17 of file attribute_group_for_search.php.

◆ $entityTypeId

$entityTypeId
Initial value:
= $objectManager->create(\Magento\Eav\Model\Entity\Type::class)
->loadByCode('catalog_product')
->getId()

Create attribute set

Definition at line 12 of file attribute_group_for_search.php.

◆ $objectManager

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Definition at line 7 of file attribute_group_for_search.php.