Move system_get_module_admin_tasks() into a service and deprecate it

Created on 10 March 2019, almost 6 years ago
Updated 10 September 2023, over 1 year ago

Problem/Motivation

Part of 🌱 [META] Remove all usages of drupal_static() & drupal_static_reset() Active effort. Remove usage of drupal_static() from system_get_module_admin_tasks().

Proposed resolution

  • Add two new services:
    • user.module_permissions_link_helper => Drupal\user\ModulePermissionsLinkHelper for module permission links and
    • system.module_admin_links_helper => Drupal\system\ModuleAdminLinksHelper for module admin links
  • Deprecate system_get_module_admin_tasks().
  • Deprecate usage of drupal_static_reset('system_get_module_admin_tasks').

Remaining tasks

User interface changes

None.

API changes

  • Added two new services:
    • user.module_permissions_link_helper => Drupal\user\ModulePermissionsLinkHelper for module permission links and
    • system.module_admin_links_helper => Drupal\system\ModuleAdminLinksHelper for module admin links
  • system_get_module_admin_tasks() is deprecated.
  • Using drupal_static_reset() with system_get_module_admin_tasks as parameter is deprecated.

Data model changes

None.

Release notes snippet

N/A

πŸ“Œ Task
Status

Fixed

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 14 hours ago

Created by

πŸ‡·πŸ‡΄Romania claudiu.cristea Arad πŸ‡·πŸ‡΄

Live updates comments and jobs are added and updated live.
Sign in to follow issues

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