Hi! thanks for this quick patch!
The code looks good and it works as expected, add paragraph link is displayed and also the form to add paragraph list the allowed paragraph based on user role permissions.
fran seva → created an issue.
I can reproduce this error in the following context:
* menu_select is enabled
* menu_select is configured to use search input
* domain_menu module is enable
To reproduce the error
* Go to any domain menu
* Add a new link
fran seva → created an issue.
I have tested the patch and review the code and looks good.
fran seva → created an issue.
I found this patch is causing errors when try to access to get the value when we create a new content. Before we access to [0] it is needed to check item has a value. As part of it I have also ensure we never pass a null value to isNotUnique due to that's causing more issues with php8.1.
I have created a PR checking $variables['elements']['#view_mode'] to provide an empty string in case variable is null.
I saw this fix in other modules like paragraphs.
fran seva → created an issue.
Hi - we had the same issue and the problem seems to be the ttl is not being set correctly to cache max age.