Skip to content

Commit 0bfaf8f

Browse files
authored
Merge pull request #74 from localgovdrupal/2.x
Pull request ahead of realease 2.0.6
2 parents 13a35f8 + 9edb212 commit 0bfaf8f

5 files changed

+6
-55
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"require": {
99
"drupal/entity_hierarchy": "^2.24",
1010
"drupal/layout_paragraphs": "^1.0.0",
11-
"drupal/tablefield": "dev-2.x",
11+
"drupal/tablefield": "^2.2",
1212
"drupal/viewsreference": "^2.0",
1313
"localgovdrupal/localgov_core": "^2.1",
1414
"localgovdrupal/localgov_paragraphs": "^2.0"

localgov_subsites.module

-6
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ function localgov_subsites_theme($existing, $type, $theme, $path) {
2929
'image' => '',
3030
],
3131
],
32-
'subsite_overview_banner' => [
33-
'variables' => [
34-
'heading' => '',
35-
'image' => '',
36-
],
37-
],
3832
'node__localgov_subsites_page__full' => [
3933
'template' => 'node--localgov-subsites-page--full',
4034
'base hook' => 'node',

src/Plugin/Block/SubsitesOverviewBlock.php

-37
This file was deleted.

templates/subsite-navigation.html.twig

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@
4646
]
4747
%}
4848
<li{{ item.attributes.addClass(classes) }}>
49-
{{ link(item.title, item.url) }}
49+
{% if item.in_active_trail %}
50+
{{ item.title }}
51+
{% else %}
52+
{{ link(item.title, item.url) }}
53+
{% endif %}
5054
{% if item.below %}
5155
{{ subsite_navigation.menu_links(item.below, attributes, menu_level + 1) }}
5256
{% endif %}

templates/subsite-overview-banner.html.twig

-10
This file was deleted.

0 commit comments

Comments
 (0)