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

Public Member Functions

 getList (\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria)
 
 get ($attributeCode)
 
 save (\Magento\Catalog\Api\Data\ProductAttributeInterface $attribute)
 
 delete (\Magento\Catalog\Api\Data\ProductAttributeInterface $attribute)
 
 deleteById ($attributeCode)
 

Detailed Description

Interface RepositoryInterface must be implemented in new model @api

Since
100.0.2

Definition at line 14 of file ProductAttributeRepositoryInterface.php.

Member Function Documentation

◆ delete()

Delete Attribute

Parameters
\Magento\Catalog\Api\Data\ProductAttributeInterface$attribute
Returns
bool True if the entity was deleted (always true)
Exceptions

Implemented in Repository.

◆ deleteById()

deleteById (   $attributeCode)

Delete Attribute by id

Parameters
string$attributeCode
Returns
bool
Exceptions

Implemented in Repository.

◆ get()

get (   $attributeCode)

Retrieve specific attribute

Parameters
string$attributeCode
Returns
\Magento\Catalog\Api\Data\ProductAttributeInterface
Exceptions

Implemented in Repository.

◆ getList()

getList ( \Magento\Framework\Api\SearchCriteriaInterface  $searchCriteria)

Retrieve all attributes for entity type

Parameters
\Magento\Framework\Api\SearchCriteriaInterface$searchCriteria
Returns
\Magento\Catalog\Api\Data\ProductAttributeSearchResultsInterface

◆ save()

Save attribute data

Parameters
\Magento\Catalog\Api\Data\ProductAttributeInterface$attribute
Returns
\Magento\Catalog\Api\Data\ProductAttributeInterface
Exceptions

Implemented in Repository.


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