Commit b560f348 authored by alexpott's avatar alexpott
Browse files

Issue #2303605 by cilefen: Rename *.menu_links.yml to *.links.menu.yml files to improve DX.

parent 40fbf6b4
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
* @section sec_links Defining menu links for the administrative menu * @section sec_links Defining menu links for the administrative menu
* Routes for administrative tasks can be added to the main Drupal * Routes for administrative tasks can be added to the main Drupal
* administrative menu hierarchy. To do this, add lines like the following to a * administrative menu hierarchy. To do this, add lines like the following to a
* module_name.menu_links.yml file (in the top-level directory for your module): * module_name.links.menu.yml file (in the top-level directory for your module):
* @code * @code
* dblog.overview: * dblog.overview:
* title: 'Recent log messages' * title: 'Recent log messages'
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
* - The first line is the machine name for your menu link, which usually * - The first line is the machine name for your menu link, which usually
* matches the machine name of the route (given in the 'route_name' line). * matches the machine name of the route (given in the 'route_name' line).
* - parent: The machine name of the menu link that is the parent in the * - parent: The machine name of the menu link that is the parent in the
* administrative hierarchy. See system.menu_links.yml to find the main * administrative hierarchy. See system.links.menu.yml to find the main
* skeleton of the hierarchy. * skeleton of the hierarchy.
* - weight: Lower (negative) numbers come before higher (positive) numbers, * - weight: Lower (negative) numbers come before higher (positive) numbers,
* for menu items with the same parent. * for menu items with the same parent.
......
...@@ -154,7 +154,7 @@ protected function processDefinition(array &$definition, $plugin_id) { ...@@ -154,7 +154,7 @@ protected function processDefinition(array &$definition, $plugin_id) {
*/ */
protected function getDiscovery() { protected function getDiscovery() {
if (empty($this->discovery)) { if (empty($this->discovery)) {
$yaml = new YamlDiscovery('menu_links', $this->moduleHandler->getModuleDirectories()); $yaml = new YamlDiscovery('links.menu', $this->moduleHandler->getModuleDirectories());
$this->discovery = new ContainerDerivativeDiscoveryDecorator($yaml); $this->discovery = new ContainerDerivativeDiscoveryDecorator($yaml);
} }
return $this->discovery; return $this->discovery;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment