EntityInterface
Magento\Catalog\Model\EntityInterface
What it does
This interface defines a contract for catalog entities (like products, categories) that require an entity ID.
Developers implement this interface when creating custom catalog entity models to ensure they provide a standardized way to retrieve the entity's unique identifier.
It's commonly used in repositories, collections, and services that need to work with various catalog entities in a uniform manner.
Public Methods
- getEntityId()