Good afternoon,
I have created a block view
with its respective template, I put it below:
{%
set classes = [
'block',
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
]
%}
<div{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{% if label %}
<h2{{ title_attributes }}>{{ label }}</h2>
{% endif %}
{{ title_suffix }}
{% block content %}
<div{{ content_attributes.addClass('content') }}>
{{ content }}
</div>
{% endblock %}
Everything works fine, it is shown correctly with the fields that I have put in its content type
but I want to modify them, I do not know what variable in twig I would have to use or what to do to collect the values of the fields.
The doubt is that I do not know how to modify the elements of block
within the template at my whim.
I want to collect the values of the fields and use them at my whim.