Skip to content

NULL $extender breaks PageHeaderBlock #270

@NikLP

Description

@NikLP

Fault at line: https://github.com/localgovdrupal/localgov_core/blame/ced43a28fc9f52d5951a66fb282ea191fc1c007c/src/Plugin/Block/PageHeaderBlock.php#L261

Issue: If $extender is NULL, the lede part of the code breaks with:
Error: Call to a member function getLede() on null in Drupal\localgov_core\Plugin\Block\PageHeaderBlock->getLede() (line 265 of modules/contrib/localgov_core/src/Plugin/Block/PageHeaderBlock.php).

Solution: Provide check for null on the extender variable

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions