Log in
Model

Filter

Magento\Catalog\Model\Template\Filter

What it does

This filter class processes template directives in catalog-related content, converting special syntax like {{view}}, {{media}}, and {{store}} into actual URLs.

Developers use this when rendering product descriptions, CMS content, or email templates that need to dynamically generate URLs for assets, media files, or store pages with proper absolute/relative path handling.

Public Methods

  • setUseAbsoluteLinks()
  • setUseSessionInUrl()
  • viewDirective()
  • mediaDirective()
  • storeDirective()