Commit b560f348 authored by alexpott's avatar alexpott

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

parent 40fbf6b4
......@@ -135,7 +135,7 @@
* @section sec_links Defining menu links for the administrative menu
* Routes for administrative tasks can be added to the main Drupal
* 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
* dblog.overview:
* title: 'Recent log messages'
......@@ -148,7 +148,7 @@
* - 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).
* - 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.
* - weight: Lower (negative) numbers come before higher (positive) numbers,
* for menu items with the same parent.
......
......@@ -154,7 +154,7 @@ protected function processDefinition(array &$definition, $plugin_id) {
*/
protected function getDiscovery() {
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);
}
return $this->discovery;
......
......@@ -69,7 +69,7 @@ public function getLinks() {
* An YAML discovery instance.
*/
protected function getDiscovery() {
return new YamlDiscovery('menu_links', $this->moduleHandler->getModuleDirectories());
return new YamlDiscovery('links.menu', $this->moduleHandler->getModuleDirectories());
}
}
......
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