16 $installer = Bootstrap::getObjectManager()->create(\
Magento\Catalog\Setup\CategorySetup::class);
21 $attribute = Bootstrap::getObjectManager()->create(
26 $attributeRepository = Bootstrap::getObjectManager()->create(AttributeRepositoryInterface::class);
30 'attribute_code' =>
'test_configurable',
31 'entity_type_id' =>
$installer->getEntityTypeId(
'catalog_product'),
33 'is_user_defined' => 1,
34 'frontend_input' =>
'select',
38 'is_visible_in_advanced_search' => 0,
41 'is_filterable_in_search' => 0,
42 'is_used_for_promo_rules' => 0,
43 'is_html_allowed_on_front' => 1,
44 'is_visible_on_front' => 0,
45 'used_in_product_listing' => 0,
46 'used_for_sort_by' => 0,
47 'frontend_label' => [
'Test Configurable'],
48 'backend_type' =>
'int',
50 'value' => [
'option_0' => [
'Option 1'],
'option_1' => [
'Option 2']],
51 'order' => [
'option_0' => 1,
'option_1' => 2],