yicr
12/30/2019 - 1:41 AM

Twig : Tips / How to access class constants.

{%  if Product.format is constant('\\Entity\\Master\\Format::MAGAZINE') %}

or

{%  if Product.format == constant('\\Entity\\Master\\Format::MAGAZINE') %}