Improve description for parameters in hook_menu_links_discovered_alter

Created on 22 December 2016, almost 8 years ago
Updated 16 September 2024, about 1 month ago

Problem/Motivation

API page: function hook_menu_links_discovered_alter

hook_menu_links_discovered_alter(array &$links)

The documentation about this function describes the structure of the returned value. But, as all alter hooks, the returned value is not used by the caller and this documentation should describe the expected structure of the $links parameter after alteration.

Parameters

array $links: The link definitions to be altered.

Proposed resolution

array $links: The discovered menu links to be altered.

Remaining tasks

Patch
Review
Commit

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

πŸ“Œ Task
Status

RTBC

Version

11.0 πŸ”₯

Component
DocumentationΒ  β†’

Last updated about 14 hours ago

No maintainer
Created by

πŸ‡«πŸ‡·France Damien Flament

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024