- Issue created by @Grevil
Even if there's no template output (because of the formatter settings being checked in the template), the field might be treated as not empty, and the field label will be shown. The reason is, that even if all conditions in the template are false, the "isEmpty()" check of the field formatter might still be true, as the "isEmpty()" method currently only checks the availability status.
The problem is, that we can not simply sync the "isEmpty()" logic with how the formatters renders the field. As then the field type (where "isEmpty()" is declared), would depend on formatter settings, which is problematic.
Find a way to properly implement the "isEmpty()" method.
Active
1.0
Code (commerce_product_availability)