-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #748 from City-of-Helsinki/UHF-10000
UHF-10000: Patched editoria11y module
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/editoria11y.module b/editoria11y.module | ||
index abcf866144bdefd3cf8e14692612eec3528072a0..2c3e3f538150881858385f07f72833ed0718719e 100644 | ||
--- a/editoria11y.module | ||
+++ b/editoria11y.module | ||
@@ -280,6 +280,9 @@ function editoria11y_page_attachments(array &$attachments): void { | ||
$attachments['#attached']['drupalSettings']['editoria11y']['dismissals'] = $dismissals; | ||
$attachments['#attached']['drupalSettings']['editoria11y']['theme'] = $config->get('ed11y_theme'); | ||
$attachments['#attached']['drupalSettings']['editoria11y']['custom_tests'] = $config->get('custom_tests'); | ||
- $attachments['#attached']['drupalSettings']['editoria11y']['css_url'] = base_path() . Drupal::service('extension.list.module')->getPath('editoria11y'); | ||
+ /** @var \Drupal\Core\File\FileUrlGeneratorInterface $fileUrlGenerator */ | ||
+ $fileUrlGenerator = \Drupal::service('file_url_generator'); | ||
+ $attachments['#attached']['drupalSettings']['editoria11y']['css_url'] = $fileUrlGenerator | ||
+ ->generateString(Drupal::service('extension.list.module')->getPath('editoria11y')); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters