Skip to content

Releases: localgovdrupal/localgov_alert_banner

1.8.4

09 Jan 22:39
a3b029d
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.8.3...1.8.4

1.8.3

07 Jan 12:52
ea10eb9
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.8.2...1.8.3

1.8.2

17 Dec 12:55
d888dea
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.8.1...1.8.2

1.8.1

16 Oct 09:27
3738905
Compare
Choose a tag to compare

Bugfix release of 1.8 series.
See also the release notes to 1.8.0 when upgrading from previous versions.

What's Changed

Full Changelog: 1.8.0...1.8.1

1.8.0

15 Oct 14:59
9dc9ab8
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: 1.7.10...1.8.0

1.7.10

08 Oct 11:57
38e4360
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.7.9...1.7.10

1.7.9

20 Aug 11:22
537bf08
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.7.8...1.7.9

1.7.8

13 Jun 15:04
4b9d451
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.7.7...1.7.8

1.7.7

04 Jun 11:26
89d03a6
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.7.6...1.7.7

1.7.6

21 May 12:21
25fb412
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.7.5...1.7.6