https://api.drupal.org/api/drupal/core%21modules%21system%21src%21EventS...

Use a higher priority than \Drupal\field_ui\Routing\RouteSubscriber or \Drupal\views\EventSubscriber\RouteSubscriber to ensure we add the option to their routes.
@todo https://www.drupal.org/node/2158571

The statement is confusing because the subscriber actually has lower priority (-200) than Field UI subscriber (-100) or Views subscriber (-175). Symfony priorities don't work same way as weights in some Drupal components.

An optional priority integer (higher equals more important and therefore that the listener will be triggered earlier) that determines when a listener is triggered versus other listeners (defaults to 0).

http://symfony.com/doc/current/components/event_dispatcher/introduction....

We might also want to remove todo statement because the referenced issue is fixed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chi created an issue. See original summary.

Chi’s picture

Issue summary: View changes
leolandotan’s picture

Assigned: Unassigned » leolandotan
Status: Active » Needs review
FileSize
900 bytes

Here I have updated the method's comments as @Chi stated. Hope everything is in order.

Thanks!

leolandotan’s picture

Assigned: leolandotan » Unassigned
Chi’s picture

Status: Needs review » Needs work

@leolando.tan, it looks like we can keep 'option' word on the second line since it doesn't break 80 characters limit.

Devaraj johnson’s picture

Status: Needs work » Needs review
leolandotan’s picture

@Chi, Oh yeah! Just right at the 80 character limit! Didn't notice that. This contains the simple revision.

Thanks!

leolandotan’s picture

Assigned: leolandotan » Unassigned
Chi’s picture

Status: Needs review » Reviewed & tested by the community

Looks fine to me.

  • catch committed 5e6b9a3 on 8.2.x
    Issue #2682367 by leolando.tan: Wrong comment in AdminRouteSubscriber::...

  • catch committed 3b64ba4 on 8.1.x
    Issue #2682367 by leolando.tan: Wrong comment in AdminRouteSubscriber::...

  • catch committed 348079c on 8.0.x
    Issue #2682367 by leolando.tan: Wrong comment in AdminRouteSubscriber::...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to all three 8.x branches, thanks!

Status: Fixed » Closed (fixed)

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