Problem/Motivation
Place the block into a region. After that, you'll see many errors about "Warning: Undefined array key tags" e.c.
Steps to reproduce
Place the block into a region and save.
Proposed resolution
Add defensive coding to prevent "Undefined array key".
Remaining tasks
Resolve all warnings.
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot from 2025-11-27 12-24-40.png | 156.5 KB | just-me |
Issue fork custom_search-3560306
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
just-me commentedHello,
I've resolved all warnings.
It was tested on Drupal 11 and 10.
I have only one issue with the PHPStan for a new Drupal version. The issue is that in Drupal 13, the function `node_type_get_names()` would be removed, which is used actively in the project.
But the `node_type_get_names()` should be fine for 10-12 Drupal.
Comment #3
just-me commentedComment #5
just-me commentedComment #6
konot commentedI have reviewed changes and tested them. Everything looks good.
I think it is ready to be merged. Thanks for coping with that!
Comment #8
loon commentedMerged. Thanks all