Skip to content
Snippets Groups Projects

Issue #3510645: This module is not compatible with ui_suite_dsfr 1.1 and ui_patterns 2

2 files
+ 18
16
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -54,15 +54,17 @@ class DisplayButtonBlock extends BlockBase {
@@ -54,15 +54,17 @@ class DisplayButtonBlock extends BlockBase {
}
}
if (str_starts_with($this->configuration['display_region'], 'header')) {
if (str_starts_with($this->configuration['display_region'], 'header')) {
$button = [
$button = [
'#type' => 'pattern',
'#type' => 'component',
'#id' => 'button',
'#component' => 'ui_suite_dsfr:button',
'#fields' => [
'#slots' => [
'label' => $this->configuration['label_button'] ?? t('Display settings'),
'label' => $this->configuration['label_button'] ?? t('Display settings'),
],
],
'#attributes' => [
'#props' => [
'class' => 'fr-icon-theme-fill',
'attributes' => [
'data-fr-opened' => 'false',
'class' => ['fr-icon-theme-fill'],
'aria-controls' => $modal_id,
'data-fr-opened' => 'false',
 
'aria-controls' => $modal_id,
 
],
],
],
];
];
}
}
Loading