Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
AttributeManagementInterface Interface Reference
Inheritance diagram for AttributeManagementInterface:
AttributeManagement

Public Member Functions

 assign ($entityTypeCode, $attributeSetId, $attributeGroupId, $attributeCode, $sortOrder)
 
 unassign ($attributeSetId, $attributeCode)
 
 getAttributes ($entityTypeCode, $attributeSetId)
 

Detailed Description

Interface AttributeManagementInterface @api

Since
100.0.2

Definition at line 14 of file AttributeManagementInterface.php.

Member Function Documentation

◆ assign()

assign (   $entityTypeCode,
  $attributeSetId,
  $attributeGroupId,
  $attributeCode,
  $sortOrder 
)

Assign attribute to attribute set

Parameters
string$entityTypeCode
int$attributeSetId
int$attributeGroupId
string$attributeCode
int$sortOrder
Returns
int
Exceptions

◆ getAttributes()

getAttributes (   $entityTypeCode,
  $attributeSetId 
)

Retrieve related attributes based on given attribute set ID

Parameters
string$entityTypeCode
string$attributeSetId
Exceptions

◆ unassign()

unassign (   $attributeSetId,
  $attributeCode 
)

Remove attribute from attribute set

Parameters
string$attributeSetId
string$attributeCode
Exceptions

The documentation for this interface was generated from the following file: