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.
Global php does not render available variable in drupal 8.2 versions
Comment | File | Size | Author |
---|---|---|---|
#8 | views_php-available_variables-2829204-8.patch | 1.09 KB | rooby |
Screenshot - 11212016 - 11:02:31 AM.png | 10.68 KB | sajiniantony |
Comments
Comment #2
PeteS CreditAttribution: PeteS commentedThis is coming from a substitution using SafeMarkup, which seems to have been deprecated in favor of FormattableMarkup. The placeholders (from FormattableMarkup::placeholderFormat) should be in the format of @variable, %variable or :variable depending on the level of sanitizing that is desired. I don't know what !variable was intended to do, or if it was a typo, but I suspect that the fix for this is to change instances of !link to :link or @link or whatever.
Comment #3
caspervoogt CreditAttribution: caspervoogt at Plethora commentedPeteS, I think you're right, but I have tried a few things and can't get it to act any differently.
Comment #4
joergM CreditAttribution: joergM as a volunteer commentedattached the patch for fixing the SafeMarkup::format issue.
Please review and comment.
Comment #5
joergM CreditAttribution: joergM as a volunteer commentedUpdate patchfile without git differences.
Comment #6
hswong3i CreditAttribution: hswong3i commentedConfirm #5 https://www.drupal.org/files/issues/views_php-2829204.patch works with drupal-8.2.6
Comment #7
rooby CreditAttribution: rooby commentedThis issue has a fix for the deprecated functions, which will apply over the top of this patch: #2681065: Remove depreciated methods in code base.
Comment #8
rooby CreditAttribution: rooby commentedThis patch changes % replacements with @ replacements.
The reason being that the % replacements wrap the replacement in an em tag and that really isn't proper use of em tags in this case.
Comment #9
rooby CreditAttribution: rooby commentedComment #10
DarkteK CreditAttribution: DarkteK commented#8 worked great, thx!
Comment #11
boby_ui CreditAttribution: boby_ui commented#8 confirmed working with 8.8.5, I understand all the patches should be implemented to the dev version?
Comment #12
boby_ui CreditAttribution: boby_ui commented