* @return string|null
* The rendered exposed form as string or NULL otherwise.
https://git.drupalcode.org/project/drupal/-/blob/9.2.4/core/modules/view...
In fact, the viewExposedFormBlocks() method returns array|null
.
Issue fork drupal-3230690
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
Chi CreditAttribution: Chi commentedIdeally, it should return empty array instead of null, but that's another issue.
Comment #3
Chi CreditAttribution: Chi commentedComment #6
Anul CreditAttribution: Anul at Srijan | A Material+ Company for Drupal India Association commentedHi Ivan,
Raised a PR for the this issue. Updated the documentation.
https://git.drupalcode.org/project/drupal/-/merge_requests/1168/diffs
Thanks
Anul
Comment #7
Anul CreditAttribution: Anul at Srijan | A Material+ Company for Drupal India Association commentedComment #8
Chi CreditAttribution: Chi commentedThat sounds wrong because the form is not actually rendered.
It could be something like follows.
Comment #9
Anul CreditAttribution: Anul at Srijan | A Material+ Company for Drupal India Association commentedI agree on the point Ivan. Updated the comment as suggested.
Comment #10
Chi CreditAttribution: Chi commentedLooks good to me.
Comment #11
larowlanCommitted 1eae8e8 and pushed to 9.3.x. Thanks!
As there is little risk of disruption here, backported to 9.2.x