Log in
Collection

AbstractCollection

Magento\Cms\Model\ResourceModel\AbstractCollection

What it does

This is an abstract base collection class for CMS pages and blocks in Magento 2.

Developers extend this class when creating custom collections for CMS entities that need store-specific filtering and multi-store support.

It provides common functionality like store filtering, handling store relations, and generating option arrays for admin dropdowns.

Public Methods

  • addFieldToFilter()
  • addStoreFilter()
  • getSelectCountSql()
  • toOptionIdArray()