Skip to content

Conversation

@stephen-cox
Copy link
Member

@stephen-cox stephen-cox commented Dec 12, 2024

Fixes #246

Currently fails because we require drupal/linkit ^7.0 (latest recommended version) but this also needs to be bumped in localgov_page_components at the same time

@stephen-cox stephen-cox changed the title Declare Drupal 11 support Drupal 11 support Dec 12, 2024
@stephen-cox stephen-cox marked this pull request as draft December 12, 2024 15:05
@ekes
Copy link
Member

ekes commented Jan 10, 2025

Any reason this shouldn't come out of draft?

Figure if we can get this in it unblocks a bunch of others?

@ekes
Copy link
Member

ekes commented Jan 10, 2025

Guess what Implicitly marking parameter... in field_group module.

@ekes
Copy link
Member

ekes commented Jan 14, 2025

I'm still seeing lots of Implicitly marking parameter ... for other modules at that. I don't think this should stop us merging, but would be good to do so without failing tests if we can somehow.

@ekes ekes marked this pull request as ready for review January 14, 2025 12:26
@ekes ekes force-pushed the fix/2.x/246-drupal-11-support branch from 7d94100 to e0457ad Compare January 14, 2025 14:38
@ekes
Copy link
Member

ekes commented Jan 14, 2025

OK That was possibly a bit too much but worked, got rid of all the Implicitly marking... errors by patching. Remaining:

There was 1 risky test:

1) Drupal\Tests\localgov_media\Functional\StandardProfileTest::testEnablingLocalGovMedia
This test did not perform any assertions

@ekes ekes merged commit eeb8cfd into 2.x Feb 4, 2025
17 checks passed
@ekes ekes mentioned this pull request Feb 4, 2025
ekes added a commit that referenced this pull request Feb 4, 2025
* Drupal 11 support (#262)

Note: Allows linkit to upgrade to 7.0

* Declare Drupal 11 support #246
* feat: update linkit to recommended version
* Add D11 tests workflow.
* fix: update test module drupal core requirements
* fix: should take an EventDispatcherInterface object, not ContainerAwareEventDispatcher
* Patch for nullable types warning.
* Patch for nullable types.
* Workflows was merged into main.
* Allow upgrading linkit to 7.0 but keep 6.1 for dependencies.
Will drop 6.1 is next release.
* Linkit has released a version with the nullable types patch.
* Make module enable test something. New D11 phpunit tests fail if no assertion.

---------

Co-authored-by: Lee Mills <lee@leemills.dev>
Co-authored-by: ekes <ekes@iskra.net>

* Add a view display extender for the localgov_page_header for the lede (#257)

* Add a view display extender for the localgov_page_header for the lede

Fix #127

Adds a setting to views that allows for a page header category, with the option
to set a custom lede inside the view, which will then be used by the
page header block.

* Correct page header display extender title

* Add seperate view property with setter and getter to pageHeaderDisplayEvent

Since a viewExecutable is not a child of EntityInterface, provide seperate
$view property and set that when viewing a view page from the pageHeaderBlock.

* Add comment on why $view has to be rendered and cs fixes

* Fix create docblock event in views display extender

* Add views as dependency as pageDisplayExtender requires it

* Enable the views page header display extender by default

- Enables by default and adds update hook.
- Removes the install from the test.

* Fix missing return type errors

---------

Co-authored-by: Stephen Cox <stephen-cox@users.noreply.github.com>
Co-authored-by: Lee Mills <lee@leemills.dev>
Co-authored-by: Andy Broomfield <andy.broomfield@brighton-hove.gov.uk>
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.

Drupal 11 support

4 participants