Interface
CategoryInterface
Magento\Catalog\Api\Data\CategoryInterface
What it does
This interface defines the data structure and contract for category entities in Magento 2's catalog system.
Developers use it when working with category data through APIs, repositories, or service contracts to ensure type safety and proper data handling.
It provides getters and setters for core category properties like name, parent ID, position, active status, and menu visibility.
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()