Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293138

[policy, then patch] Settle on a naming convention for routes

$
0
0

If you grep for 'route_name' in 8.x right now, you see a lot of ones that look like this:

./core/modules/language/language.module:    'route_name' => 'language_negotiation_url',

and a few ones that look like this:

./core/modules/views_ui/views_ui.module:    'route_name' => 'views_ui.list',

The easiest thing to do is convert the views ones to under_scores, but I actually prefer the dot-convention myself, because it makes it clear that these are not callback functions, which they kind of look like.


Viewing all articles
Browse latest Browse all 293138

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>