Log in
Model

State

Magento\Indexer\Model\Mview\View\State

What it does

This class manages the state of Mview (Materialized View) for indexers in Magento 2.

It tracks the indexer's mode (enabled/disabled), status (idle/working), version ID, and last update timestamp.

Developers use this when working with indexer states to check if an indexer is running, control its locking mechanism, or update its processing status.

Public Methods

  • loadByView()
  • beforeSave()
  • getViewId()
  • getMode()
  • setMode()
  • getStatus()
  • setStatus()
  • getUpdated()
  • setUpdated()
  • getVersionId()
  • setVersionId()