function template_preprocess_domain_nav_block in Domain Access 8
Prepares variables for block templates.
Default template: domain-nav-block.html.twig.
Parameters
array $variables: An associative array containing:
- items: An array of labels and urls for use in the list. Properties used: 'label', 'url', 'active'.
File
- domain/
domain.module, line 162 - Defines a Domain concept for use with Drupal.
Code
function template_preprocess_domain_nav_block(array &$variables) {
$variables['items'] = $variables['items']['#items'];
}