I'm seeing the error...
Notice: Undefined index: #paragraphs_items_view_mode in template_preprocess_paragraphs_items() (line 12 of /path/to/webroot/sites/all/modules/contrib/paragraphs/theme/paragraphs.theme.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | paragraphs_items_view_mode-undefined-3094820-2.patch | 1.87 KB | jstoller |
Comments
Comment #2
jstollerLooks like this broke in #3044164: Display suite field templates ignored when paragraphs are in display mode loaded by views. Here's a patch.
Comment #4
jstollerPatch committed.
Comment #6
ciss commentedComment #7
lwalley commentedApologies I have not had time to test this but just wanted to warn that the patch seems to be setting the view mode to a boolean if
#paragraphs_items_view_modeis not set - the else isisset($variables['element']['#view_mode']);:https://git.drupalcode.org/project/paragraphs/-/commit/a9368657327daee8b...
I would expect
$view_modeto be a string not a boolean - later in the code it seems to assume it is a string:https://git.drupalcode.org/project/paragraphs/-/commit/a9368657327daee8b...