Releases: localgovdrupal/localgov_alert_banner
1.8.4
What's Changed
- Fix alert banner cookie path by @andybroomfield in #402
- Release 1.8.4 by @andybroomfield in #403
Full Changelog: 1.8.3...1.8.4
1.8.3
What's Changed
- Feature/201 remove jquery by @markconroy in #386
- Add a default block for the olivero theme by @andybroomfield in #398
- 1.8.3 release by @finnlewis in #400
Full Changelog: 1.8.2...1.8.3
1.8.2
What's Changed
- sets field labels to hidden by @markconroy in #391
- Full page alert banner template by @markconroy in #392
- Release 1.8.2 by @stephen-cox in #395
Full Changelog: 1.8.1...1.8.2
1.8.1
Bugfix release of 1.8 series.
See also the release notes to 1.8.0 when upgrading from previous versions.
What's Changed
- Check if emergency publisher role exists before changing permissions by @andybroomfield in #389
- 1.8.1 release by @andybroomfield in #390
Full Changelog: 1.8.0...1.8.1
1.8.0
Refactor of alert banner to support Drupal 11.
Requirements change
This release drops support for Drupal 9, Minimum version is now Drupal 10. Drupal 10.2+ reccomended.
The alert banner javascript no longer depends on js-cookie. Existing set cookies should still be recongnised.
Permissions change
The emergency publisher role has been granted new permissions by default:
Add access toolbar, view administation theme and access content overview permission.
The access administration pages permission has been revoked.
This is to allow users with only that role to access the alert banner admin screen from the toolbar.
UI change
The alert banner now opts into the Gin admin theme content layout. When using Gin (default in Localgov Drupal) the edit screen is the same as editing page contents (nodes). The options to set live and remove, display title, remove hide link, revision log and authoring information are now in the side bar and can optionally be hidden or shown.
New developer feature
The fetching of the current alert banners has now been adbstracted to a service so that it can be called independently of the alert banner block. The alert banner block has been adjusted to use this service.
Use
\Drupal::service('localgov_alert_banner.manager')->getCurrentAlertBanners($options);
$options is an array with the following keys.
- type: an array of alert banner type ids. Empty will fetch all types.
- check_visible: Check the alert banner visibility conditions (The alert banner condition field). Set to TRUE to run this comparision. The alert banner block sets this when displaying the banners, but FALSE when fetching cache contexts so that cache tags are added to the block correctly.
Default:
$default_options = [
'type' => [],
'check_visible' => FALSE,
];
Will return and array of current live alert banner entities.
Deprecation
This release changes the alert banner block signature. If you have extended the alert banner block the alert banner manager service now needs to be included, and current user and entity repository services should not be included as these are part of the alert banner manager. See this change and deprecation note.
What's Changed
- fix: additional strict type fixes by @millnut in #332
- Initial refactor of revision provider and access by @andybroomfield in #333
- Remove unused add type template by @andybroomfield in #335
- Move getCurrentBanners to a service by @andybroomfield in #337
- Run tests on 1.8.x branch by @stephen-cox in #339
- Remove default_argument_skip_url from group manage alert banners view by @andybroomfield in #336
- Tests fix by @andybroomfield in #340
- Opt into the Gin content form routes (edit theme) by @andybroomfield in #341
- Fix alert banner entity type paths and local tasks by @andybroomfield in #343
- Fix routes to localgov_alert_banner_types in permissions test by @andybroomfield in #344
- Remove js-cookie dependancy by @andybroomfield in #347
- Feature: Replace js cookie by @Adnan-cds in #356
- Fix the contrast on the type of alert text on full page alert banners by @andybroomfield in #362
- Mark support for Drupal 11 and drop Drupal 9 by @andybroomfield in #351
- fix/1.x 363 emergency publisher perms by @andybroomfield in #364
- [1.8.x] fix: add ignore next line by @millnut in #366
- Fix todos in admin view functional test by @alansaun92 in #370
- deprecate block contructor old signiture (current user and entity repository) by @andybroomfield in #369
- Update readme with instructions on disabling CSS by @andybroomfield in #375
- Move the visible check to alert banner manager by @andybroomfield in #355
- fix: coding standards introduced by latest drupal coder rules by @millnut in #380
- Feature/378/remove polyfills by @markconroy in #381
- 1.8.x Refactor by @andybroomfield in #338
- 1.8.0 release by @finnlewis in #387
New Contributors
- @alansaun92 made their first contribution in #370
Full Changelog: 1.7.10...1.8.0
1.7.10
What's Changed
- fix: coding standards by @finnlewis in #383
- 1.7.10 release by @finnlewis in #385
Full Changelog: 1.7.9...1.7.10
1.7.9
What's Changed
- [1.x] fix: add ignore next line by @millnut in #365
- 1.7.9 release by @finnlewis in #367
Full Changelog: 1.7.8...1.7.9
1.7.8
What's Changed
- Updating weight of local task from 50 to 30 (localgov Issue 718) by @MariosORION in #330
- 1.7.8 release by @finnlewis in #331
New Contributors
- @MariosORION made their first contribution in #330
Full Changelog: 1.7.7...1.7.8
1.7.7
What's Changed
- Re-add the getCacheContexts method to block by @andybroomfield in #328
- 1.7.7 release by @finnlewis in #329
Full Changelog: 1.7.6...1.7.7
1.7.6
What's Changed
- Performance improvements. by @rupertj in #321
- Follow up performance improvements by @andybroomfield in #325
- feat: use shared workflow by @millnut in #324
- Fix Translation for alert banner not displaying by @andybroomfield in #319
- 1.7.6 release by @andybroomfield in #326
New Contributors
Full Changelog: 1.7.5...1.7.6