Skip to content

Conversation

@andybroomfield
Copy link
Contributor

@andybroomfield andybroomfield commented Feb 14, 2025

Fix #270.

Since the PageHeaderDisplay extender can be disabled, support cases when it is not enabled.

What does this change?

  • Amend viewsPageExtenderTest to account for page header extender being disabled
  • Fix pageHeaderBlock to account for when views page header display extender is disabled

How to test

Under /admin/structure/views/settings/advanced turn off Page header display extender.
Then load a views page (or create a new page view).
Should no longer WSOD.

How can we measure success?

Less WSOD reports

Have we considered potential risks?

Fallback is to NULL so restores previous behaviour.

Images

n/a

Accessibility

n/a

@andybroomfield
Copy link
Contributor Author

//cc @NikLP

Copy link
Member

@ekes ekes left a comment

Choose a reason for hiding this comment

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

As discussed in slack. Correct that it returns NULL if not existing.

@finnlewis finnlewis merged commit 5cf9370 into 2.x Feb 18, 2025
17 checks passed
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.

NULL $extender breaks PageHeaderBlock

4 participants