I have a module I am upgrading from 7 to 8. I am working on the mymodule.routing.yml file
mymodule.admin:
path: '/admin/structure/mymodule'
route_name:mymodule
defaults:
_controller: '\Drupal\mymodule\Controller\QuicktabsController::adminOverview'
_title: 'mymodule'
requirements:
_permission: 'administer mymodule'
Now when I try to enable my module the log shows this error
Uncaught PHP Exception Drupal\\Component\\Plugin\\Exception\\PluginException: "Plugin (mymodule.admin) definition must include "route_name"" at /srv/www/appdocroot/releases/20150428151557/core/lib/Drupal/Core/Menu/LocalTaskManager.php line 161
I assume this error means that the snippet of code from my routing.yml file is the offending piece.
I have gone through the upgrade tutorial on the drupal site and it does not include the "route_name" field in the section. I originally tried it without and later put it in when I discovered the error.
Am I correct in my assumption of where the error is coming from? If thats true what is wrong with my route_name field?