CategoryInterface
Magento\Catalog\Api\Data\CategoryInterface
What it does
This interface defines the data structure and contract for working with product categories in Magento 2.
Developers use this interface when creating, reading, updating, or passing category data between different parts of the application, ensuring consistent category object structure across the system.
It provides methods to access and modify category properties like name, parent ID, position, active status, and menu inclusion settings.
Public Methods
- getId()
- setId()
- getParentId()
- setParentId()
- getName()
- setName()
- getIsActive()
- setIsActive()
- getPosition()
- setPosition()
- getLevel()
- setLevel()
- getChildren()
- getCreatedAt()
- setCreatedAt()
- getUpdatedAt()
- setUpdatedAt()
- getPath()
- setPath()
- getAvailableSortBy()
- setAvailableSortBy()
- getIncludeInMenu()
- setIncludeInMenu()
- getExtensionAttributes()
- setExtensionAttributes()