Problem/Motivation

A number of projects lately I've been using a utility to help determine if a field is empty in Twig or not. This has been put out in the Utility Belt module. The has_content variable checks fields against whether they exist, if they're used on Manage Display, and if they're empty. Lastly it also accounts for whether the field is empty, but loaded within Layout Paragraphs/Mercury Editor and therefore we need the default UI to place new components.

We should consider making this approach our standard on new builds.

Comments

jnettik created an issue.