Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/245 alert banner with empty link text should show more information but nothing shows #275

Conversation

alexburrows
Copy link
Contributor

@alexburrows alexburrows commented Aug 7, 2023

This allows More information to show if no link title is entered.
Removed the previous PR code as discussed we went with the hook_preprocess_field solution

ctorgalson and others added 2 commits May 16, 2023 10:41
- The original code *changes* the type of the render array from LinkItem to
  GeneratedLink.
- This makes theming the entity slightly unpredictable.
- This change supplies the default text *without* changing the type of object
  provided to Twig.
- Re: 245_alert_banner_with_empty_link_text_should_show_more_information_but_nothing_shows
Copy link
Contributor

@andybroomfield andybroomfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working for me on both localgov_scarfolk / base and Olivero

Screenshot 2023-08-07 at 12 26 34 pm Screenshot 2023-08-07 at 12 27 02 pm

andybroomfield and others added 10 commits August 7, 2023 14:13
Fix #251

During config sync operations, if creating a new alert banner type the
visibility field will try to be created, even though that is
part of config.

This checks if the isSyncing flag is set and skips over the
postSave actions as we assume they are part of the config
being imported.
…ent banners

During import, and in times where the type_of_alert field has been deleted, the
getCurrentBanners method will try to perform an entity query, but it needs to
check the field is present before adding a sort.
Fix #259

Put use statements in alphabetical order.
Ref #218

Add new annotation to get the alert banner permissions form on the manage alert banner type
entity.
Also changes the alert banner permissions generator to make sure are assigned to the alert
banner entity using BundlePermissionHandlerTrait
As banner types now use path /admin/structure/alert-banner-types
Drops support for Drupal 8 and Drupal less than 9.4 which does not have
the BundlePermissionHandlerTrait.
* Fix code deprecations #268

* Test against LGD 2.x with Drupal 9 and LGD 3.x with Drupal 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants