Log in
Model

FilterProvider

Magento\Cms\Model\Template\FilterProvider

What it does

This class provides template filter instances for CMS pages and blocks in Magento 2.

Developers use it to retrieve filter objects that process template directives (like widgets, variables, and custom directives) in CMS content before rendering.

It ensures the same filter instance is reused through lazy loading and caching.

Public Methods

  • getBlockFilter()
  • getPageFilter()