Я использую шаблон Classy, чтобы впервые попрактиковаться в Drupal.В одном из блоков мне удалось использовать kint, и я мог видеть содержимое в массиве следующим образом:
{{ kint(content) }}
Теперь, однако, я создал новый файл (дубликат оригинала в основных темах)и названный узел - article - full.html.twig
В этом файле я попытался использовать тот же код
{{ kint(content) }}
Я очистил все кеши и посетил статью;но когда он загружается, по какой-то причине он приводит меня к localhost / themename / core / install.php
Полный файл выглядит следующим образом:
{%
set classes = [
'node',
'node--type-' ~ node.bundle|clean_class,
node.isPromoted() ? 'node--promoted',
node.isSticky() ? 'node--sticky',
not node.isPublished() ? 'node--unpublished',
view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
]
%}
{{ attach_library('classy/node') }}
<article{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{% if not page %}
<h2{{ title_attributes }}>
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
</h2>
{% endif %}
{{ title_suffix }}
{% if display_submitted %}
<footer class="node__meta">
{{ author_picture }}
<div{{ author_attributes.addClass('node__submitted') }}>
{% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
{{ metadata }}
</div>
</footer>
{% endif %}
<div{{ content_attributes.addClass('node__content') }}>
{{ content }}
</div>
{{ kint(content) }}
Hi there from the full node template of the aticle content type
</article>
Что-то не так с этим конкретным файломвозможно?Обратите внимание, что если я удаляю содержимое kint, файл работает.