getDerivativeDefinitions() does not return an array for plugin "advanced_help.local_tasks".

Created on 10 March 2023, almost 2 years ago
Updated 12 June 2023, over 1 year ago

Problem/Motivation

If the Advanced Help module is installed on a site and the Help module provided by Drupal core is not enabled, the following warning message is logged to the Drupal event log each time a page is loaded: getDerivativeDefinitions() does not return an array for plugin "advanced_help.local_tasks".

The getDerivativeDefinitions() function is located on line 15 of the /html/modules/contrib/advanced_help/src/Plugin/Derivative/DynamicLocalTasks.php file.

Steps to reproduce

1. Ensure the Help module provided by Drupal core is disabled. If not, disable it.
2. Enable the Advanced Help module.
3. Clear the cache.
4. Load any page.
5. Check the Drupal event log.
6. See the following warning message: getDerivativeDefinitions() does not return an array for plugin "advanced_help.local_tasks".

Proposed resolution

Add the Help module provided by Drupal core as a dependency of the Advanced Help contributed module.

Remaining tasks

Done - Create a patch that adds the dependency to the advanced_help.info.yml file.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada gturnbull

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

Comments & Activities

Production build 0.71.5 2024