In 🐛 LogicException: Cannot create key "article" on non-array value. in Drupal\Component\Utility\NestedArray::setValue() (Zeile 154 in web/core/lib/Drupal/Component/Utility/NestedArray.php). Postponed we found out that it's not generally required to call
->setAlwaysProcess()
in the build()
method of the block.
In cases where the views form displayed in the block should not handle parameters on the page, where it is placed, but just to be passively used as form submitter, you don't need to process the form in the block.
When submitting the exposed filter block form, the target view will handle the submitted values!
>setAlwaysProcess()
in build()
if the option is TRUENeeds review
1.0
Code