Closed (fixed)
Project:
Rules
Version:
8.x-3.x-dev
Component:
Rules Core
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Dec 2017 at 13:58 UTC
Updated:
2 Mar 2020 at 05:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
roborew commentedWe are also after this feature, ill do some digging.
Comment #3
tr commentedThere is are no site tokens available in the D8 version of Rules yet. That feature still needs to be ported from D7.
I have an implementation that provides most site tokens as global context variables, but I don't think that direction is what @fago had in mind for core Rules, see #2245611: [META] Rules 8.x architecture. So I will eventually be providing that implementation as an add-on module for Rules rather than a patch for core Rules. Maybe sometime in the next month, after I have some time to finish it.
Comment #4
tr commentedThe site tokens were available in D7 but are not yet available in D8, so I consider this a porting task as opposed to a feature request.
I think it's important enough that this should be a beta blocker.
Comment #5
Syntapse commentedDoes anyone have an idea when {{ site.stuff }} will be available?
Comment #6
tr commentedTagging issues that will be fixed by code moved from D8RE.
Comment #7
tr commentedThis feature was developed in D8RE in the meta issue #3098286: [meta] Make site information available in D8
You can read that issue for documentation on how site tokens work in D8 compared to D7.
The attached patch moves that site token functionality from D8RE to Rules.
Comment #8
tr commentedThis should fix the 3 coding standards problems, which only occur because core requires us to override and redefine the first parameter of
\Drupal\Core\TypedData\TypedData::setValue()but doesn't give us a way to do that without completely replicating the documentation comments.Comment #10
tr commentedCommitted.