Comments

tim.plunkett’s picture

Status: Postponed » Needs review
StatusFileSize
new16.43 KB

Hope this works!

dawehner’s picture

StatusFileSize
new17.95 KB
new1.52 KB

Looks great so far, did a couple of more conversions.

tim.plunkett’s picture

Status: Needs work » Needs review
StatusFileSize
new16.16 KB
tim.plunkett’s picture

Status: Needs work » Needs review
StatusFileSize
new6.23 KB
new1.55 KB
tim.plunkett’s picture

Status: Needs review » Needs work

I finally posted to the wrong issue. I was expecting that to happen all day...

tim.plunkett’s picture

Assigned: tim.plunkett » dawehner
Status: Needs work » Needs review
StatusFileSize
new17.15 KB
new1.29 KB

Well, LinkGenerator's active class handling doesn't work for <current>:

        // @todo System path is deprecated - use the route name and parameters.
        $system_path = $url->getInternalPath();
        // Special case for the front page.
        $variables['options']['attributes']['data-drupal-link-system-path'] = $system_path == '' ? '<front>' : $system_path;

$system_path is the escaped %3Ccurrent%3E

dawehner’s picture

One idea could be that we do call toString() but set $options['alias'] = TRUE, which will skip path aliases
but run everything else. Otherwise we could also compare in JS/PHP manually.

dawehner’s picture

Trying to use route processors, nice!

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new6.39 KB
new30.29 KB

Let's see.

dawehner’s picture

Assigned: dawehner » Unassigned
Issue tags: +Pre-AMS beta sprintbeta target

Let's merge tags

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new30.3 KB

Let's see.

yukare’s picture

This is not wrong? rage instead of page.

- - { name: service_collector, tag: page_cache_response_policy, call: addPolicy}
+ - { name: service_collector, tag: rage_cache_response_policy, call: addPolicy}

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new29.91 KB
new545 bytes

Love it!

xjm’s picture

Issue tags: -Pre-AMS beta sprintbeta target +Pre-AMS beta sprint, +beta target
wim leers’s picture

Status: Needs work » Needs review
StatusFileSize
new30 KB
new1.32 KB

This should fix a big chunk of the test failures. Also renamed $new_route to $current_route, which I think makes more sense.

wim leers’s picture

Status: Needs work » Needs review
StatusFileSize
new30.02 KB

Chasing HEAD.

wim leers’s picture

Status: Needs work » Needs review
StatusFileSize
new30.45 KB
new1.93 KB

Be greener!

tim.plunkett’s picture

Assigned: Unassigned » tim.plunkett

Working on this.

tim.plunkett’s picture

Status: Needs work » Needs review
StatusFileSize
new33.06 KB
new3.49 KB

We're adding a call to processRoute in getPathFromRoute, so the call counts need to be bumped up.

wim leers’s picture

Tim++ :)

dawehner’s picture

Assigned: tim.plunkett » Unassigned

+1 in general!

+++ b/core/core.services.yml
@@ -824,14 +824,15 @@ services:
+  route_processor_none:
+    class: Drupal\Core\RouteProcessor\RouteProcessorNone
...
+      - { name: route_processor_outbound, priority: 200 }

I wonder whether we should have the same priorities as before. I just have not thought about it actually

tim.plunkett’s picture

Status: Needs review » Needs work

Doesn't apply currently, but borrowing parts of this for #2347465: Convert all instances of #type link/links to convert to use routes

damiankloip’s picture

Status: Needs work » Needs review
StatusFileSize
new32.15 KB
new2.6 KB

Needed quite a reroll. Modified the parameters for the outbound route processor,use the route name in the conditional instead, merge the parameters instead of overwriting all of them.

dawehner’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
Issue tags: -Pre-AMS beta sprint +During-AMS beta sprint

Looks awesome now.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.0.x, thanks!

  • catch committed 4e5c1c2 on 8.0.x
    Issue #2345753 by tim.plunkett, dawehner, Wim Leers, damiankloip: Remove...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.