Problem/Motivation

The following error occurs while importing a view block YAML file (e.g., block.block.idfs_views_block__feedback_form_floating_menu_block_3.yml). I have also added a CSS class to the block.

TypeError: array_merge(): Argument #1 must be of type array, string given in array_merge() (line 202 of /code/web/modules/contrib/block_class/src/Service/BlockClassHelperService.php).
[warning] Drush command terminated abnormally.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

kishor kumar v created an issue. See original summary.

dydave’s picture

Thanks Kishor (@kishor kumar v) for creating this issue and providing some details on the error message. 🙏

Could this be related to #3493849: Argument #1 ($array) must be of type array, string given block_class/src/Service/BlockClassHelperService.php?

Could you please help providing additional context and if possible testing steps that would allow us to reproduce the issue?

Could you please also try testing with the latest 4.0.x-dev version, if possible, and see if the problem could have been resolved?

Any additional information that could help us reproduce the problem would be greatly appreciated.

Since this issue is pretty recent, let's keep it open a bit longer to see if other users encounter the same problem.

Feel free to let us know if you would have any questions or concerns on any aspects of this comment or the module in general, we would surely be glad to help. 😊
Thanks in advance!