{# /** * @file * Default theme implementation to display wizard tree. * * Available variables: * - step: The current step name. * - tree: A nested list of menu items. Each menu item contains: * - title: The menu link title. * - url: The menu link url, instance of \Drupal\Core\Url * - children: The menu item child items. * - step: The name of the step. * * @ingroup themeable */ #} {% import _self as panelizer %} {# We call a macro which calls itself to render the full tree. @see http://twig.sensiolabs.org/doc/tags/macro.html #} {{ panelizer.wizard_tree(tree, step, 0) }} {% macro wizard_tree(items, step, menu_level) %} {% import _self as panelizer %} {% if items %}