Log in
Model

VariableCompatibilityChecker

Magento\Email\Model\Template\VariableCompatibilityChecker

What it does

This class validates email template syntax for compatibility with Magento's strict variable resolver.

Developers use it to scan email templates and detect invalid usage of template directives like {{var}}, {{if}}, {{depend}}, and {{for}}, ensuring templates only use allowed operations like getter methods and scalar array access rather than arbitrary method calls.

Public Methods

  • getCompatibilityIssues()