For check Twig file field is empty or not, look at the syntax..
/* write comment here */
{% else %}
/* write comment here */
{% endif %}
OR
{% if content.field_machine_name|render %}
/* write comment here */
{% endif %}
Note: If have any suggestions or issue regarding 'Check twig file field is empty or not' then you can ask by comments.
No comments:
Post a Comment