Here is where I'm at:
I downloaded the group module, created custom fields for the group, then on the page itself I overrided it with a twig template (page--group.html.twig). The question now becomes, how do I pass down the custom fields from group (machine name of a field is "group_picture") to the twig template of page--group.html.twig?
I used kint()
to see if anything was being passed down from the group, but nothing was being passed down. What am I missing here?
Top level kint()
variables:
'page' => array(33)
'theme_hook_original' => string(4) "page"
→'attributes' => Drupal\Core\Template\Attribute(1)
→'title_attributes' => Drupal\Core\Template\Attribute(1)
→'content_attributes' => Drupal\Core\Template\Attribute(1)
'title_prefix' => array(0)
'title_suffix' => array(0)
'db_is_active' => boolTRUE
'is_admin' => boolTRUE
'logged_in' => boolTRUE
→'user' => Drupal\Core\Session\AccountProxy(7)
→'directory' => string(23) "themes/custom/kropotkin"
→'base_path' => string(1) "/"
→'front_page' => string(1) "/"
→'language' => Drupal\Core\Language\Language(5)
'is_front' => boolFALSE
→'#cache' => array(1)
→'#attached' => array(1)
→'navbar_top_attributes' => Drupal\Core\Template\Attribute(1)
→'navbar_attributes' => Drupal\Core\Template\Attribute(1)
→'sidebar_first_attributes' => Drupal\Core\Template\Attribute(1)
→'sidebar_second_attributes' => Drupal\Core\Template\Attribute(1)
'container_navbar' => string(1) "0"
'container' => string(9) "container"
→'theme_hook_suggestions' => array(3)
'theme_hook_suggestion' => string(4) "page"
My twig override is currently this:
{% extends "@themename/page.html.twig" %}
{% block content %}
{{kint()}}
BLAH BLAH
{% endblock %}
and the page.html.twig
is coming straight from bootstrap_barrio's subtheme template.