Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Coming from #2654892: Allow using data filters in placeholder tokens:
The 'default' filter can currently only filter on strings, so node:title is not a valid input while node:title:value would be. As we can convert everything to strings via $typed_data->getString() we should probably implement some logic that invokes that function for filters that need string input.
Thus, we need to check whether the next filter input accepts the data of the current type, if not try it again with a string. If that works, auto-convert it via getString().
Comments
Comment #2
dasjoComment #3
TR CreditAttribution: TR commentedI guess this should be a TypedData issue now that data filters have been moved over there ...
Comment #4
TR CreditAttribution: TR commented