Model
AbstractFlatState
Magento\Catalog\Model\Indexer\AbstractFlatState
What it does
This abstract class serves as a base for checking the state of Magento 2 flat indexers (like product or category flat tables).
Developers extend this class to determine if flat indexing is enabled in configuration and if the flat index is valid and available for use.
It's commonly used before querying flat tables to ensure they're ready.
Public Methods
- isFlatEnabled()
- isAvailable()