format_wysiwyg
{{ format_wysiwyg(field.wysiwyg['#text'], field.wysiwyg['#textFormat'], '') }}renderInlineStyle(string styles)
{% set styles %}
<style>
.twig-component .inline-style {
color: {{ field.color_picker }};
}
</style>
{% endset %}
{{ renderInlineStyle(styles) }}renderContent(string entity_type, string view_mode, string entity_id)
<div class="twig-entity-reference">
{{ renderContent(field.entity_reference['#entity_type'], field.entity_reference['#view_mode'], field.entity_reference['#entity']) }}
</div>You can find the complete list of all twig functions defined by Site Studio in modules/cohesion_templates/src/TwigExtension/TwigExtension.php
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Various twig functions are available to render field type:
format_wysiwyg
{{ format_wysiwyg(field.wysiwyg['#text'], field.wysiwyg['#textFormat'], '') }}renderInlineStyle(string styles)
{% set styles %}
<style>
.twig-component .inline-style {
color: {{ field.color_picker }};
}
</style>
{% endset %}
{{ renderInlineStyle(styles) }}renderContent(string entity_type, string view_mode, string entity_id)
<div class="twig-entity-reference">
{{ renderContent(field.entity_reference['#entity_type'], field.entity_reference['#view_mode'], field.entity_reference['#entity']) }}
</div>You can find the complete list of all twig functions defined by Site Studio in modules/cohesion_templates/src/TwigExtension/TwigExtension.php
If this content did not answer your questions, try searching or contacting our support team for further assistance.