Refer to the Symfony routing documentation at http://symfony.com/doc/current/book/routing.html Refer to Chapter 10, The Entity API Refer to the access checking on routes community documentation at https://www.drupal.org/node/2122195