Closed (works as designed)
Project:
Drupal core
Version:
8.6.x-dev
Component:
path.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2018 at 05:53 UTC
Updated:
21 Dec 2018 at 08:33 UTC
Jump to comment: Most recent
Comments
Comment #2
volegertab_item.entity.field_link.0.url.routeParameters passed in twig function as NULL. Please prepare your values in preprocess hook to be sure that arguments passed in the function have expected types and values.
Comment #3
lomasr commentedSorry about the confusion. tab_item.entity.field_link.0.url is the field value we are getting. This is a paragraph field .
Comment #4
volegerAnyway, you should care about the availability of the correct data used as arguments in the twig function.
You can use additional conditional constructions such as https://twig.symfony.com/doc/1.x/tags/if.html
or implements hook_preprocess_HOOK() to prepare the data used in the twig template.
Comment #5
volegerLooks like that was a problem with template customization. So moved to the Support request category.