Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:City-of-Helsinki/drupal-emergency-si…
Browse files Browse the repository at this point in the history
…te into dev
  • Loading branch information
dragos-dumi-ibm committed Nov 10, 2023
2 parents 5dcd3e0 + 18377e2 commit 9c0f9dd
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 105 deletions.
16 changes: 2 additions & 14 deletions conf/cmi/core.entity_view_display.node.news_item.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ dependencies:
module:
- entity_reference_revisions
- helfi_platform_config
- link
- user
_core:
default_config_hash: _31gTd8Z7ZT8KGS8tHPve5Vb_OAnn7JbybIcOXUGiyA
Expand All @@ -42,7 +41,7 @@ content:
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 9
weight: 8
region: content
field_lead_in:
type: text_span
Expand All @@ -65,18 +64,6 @@ content:
label: inline
settings: { }
third_party_settings: { }
weight: 8
region: content
field_news_item_links_link:
type: link
label: hidden
settings:
trim_length: 255
url_only: false
url_plain: false
rel: '0'
target: '0'
third_party_settings: { }
weight: 7
region: content
field_news_item_links_title:
Expand Down Expand Up @@ -111,6 +98,7 @@ content:
weight: 3
region: content
hidden:
field_news_item_links_link: true
field_news_item_tags: true
langcode: true
toc_enabled: true
4 changes: 0 additions & 4 deletions conf/cmi/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module:
easy_breadcrumb: 0
editor: 0
editoria11y: 0
encrypt: 0
entity: 0
entity_reference_revisions: 0
entity_usage: 0
Expand Down Expand Up @@ -81,7 +80,6 @@ module:
imagemagick: 0
jquery_ui: 0
jquery_ui_draggable: 0
key: 0
language: 0
link: 0
linkit: 0
Expand All @@ -105,7 +103,6 @@ module:
paragraphs_library: 0
path: 0
path_alias: 0
real_aes: 0
redirect: 0
responsive_image: 0
rest: 0
Expand All @@ -122,7 +119,6 @@ module:
taxonomy: 0
telephone: 0
text: 0
tfa: 0
token: 0
toolbar: 0
twig_tweak: 0
Expand Down
13 changes: 0 additions & 13 deletions conf/cmi/encrypt.profile.authentication_profile.yml

This file was deleted.

5 changes: 0 additions & 5 deletions conf/cmi/encrypt.settings.yml

This file was deleted.

17 changes: 0 additions & 17 deletions conf/cmi/key.key.authentication_key.yml

This file was deleted.

46 changes: 0 additions & 46 deletions conf/cmi/tfa.settings.yml

This file was deleted.

4 changes: 2 additions & 2 deletions conf/cmi/user.role.admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ dependencies:
- file
- filter
- helfi_api_base
- helfi_emergency_general
- locale
- media
- menu_link_attributes
Expand All @@ -44,7 +45,6 @@ dependencies:
- simple_sitemap
- system
- taxonomy
- tfa
- view_unpublished
_core:
default_config_hash: dKoMlS2I78xz3dRwDh7nlvZPJM1CmU8s6tNswGPk3_4
Expand Down Expand Up @@ -72,7 +72,6 @@ permissions:
- 'administer pathauto'
- 'administer redirects'
- 'administer sitemap settings'
- 'administer tfa for other users'
- 'administer url aliases'
- 'administer users'
- 'assign admin role'
Expand Down Expand Up @@ -153,6 +152,7 @@ permissions:
- 'edit terms in news_group'
- 'edit terms in news_neighbourhoods'
- 'edit terms in news_tags'
- 'modify announcement message'
- 'revert all revisions'
- 'revert announcement revisions'
- 'revert landing_page revisions'
Expand Down
2 changes: 0 additions & 2 deletions conf/cmi/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ dependencies:
- media
- paragraphs
- system
- tfa
- toolbar
_core:
default_config_hash: dJ0L2DNSj5q6XVZAGsuVDpJTh5UeYkIPwKrUOOpr8YI
Expand All @@ -20,7 +19,6 @@ permissions:
- 'access content'
- 'access toolbar'
- 'display eu cookie compliance popup'
- 'setup own tfa'
- 'view media'
- 'view remote entities'
- 'view unpublished paragraphs'
8 changes: 6 additions & 2 deletions public/themes/custom/hdbt_subtheme/hdbt_subtheme.theme
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ function hdbt_subtheme_preprocess_block(&$variables) {
}
// Overwrite etusivu url.
if ($variables['elements']['#plugin_id'] == 'system_branding_block') {
$variables['frontpage_instance_url'] = \Drupal::request()->getSchemeAndHttpHost();
$lang = \Drupal::languageManager()->getCurrentLanguage()->getId();
$variables['frontpage_instance_url'] =
\Drupal::request()->getSchemeAndHttpHost() . '/' . $lang;
}
}

Expand Down Expand Up @@ -128,6 +130,8 @@ function hdbt_subtheme_theme_suggestions_node_alter(&$suggestions, $variables) {
*/
function hdbt_subtheme_preprocess_region(&$variables) {
if (isset($variables['elements']['hdbt_subtheme_footerbottomnavigation'])) {
$variables['frontpage_instance_url'] = \Drupal::request()->getSchemeAndHttpHost();
$lang = \Drupal::languageManager()->getCurrentLanguage()->getId();
$variables['frontpage_instance_url'] =
\Drupal::request()->getSchemeAndHttpHost() . '/' . $lang;
}
}

0 comments on commit 9c0f9dd

Please sign in to comment.