plugin info alter hook needs to be documented in api.php file

Created on 9 June 2025, 29 days ago

Problem/Motivation

The plugin manager invents the alter hook data_provider_info.

This needs to be documented in an api.php file.

Steps to reproduce

Proposed resolution

Add the api.php file.

Tagging as novice -- see hook_filter_info_alter() or hook_media_source_info_alter() in core for examples.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Documentation

Created by

🇬🇧United Kingdom joachim

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

  • Issue created by @joachim
  • 🇮🇳India gauravkhambhala

    Please check the attached patch file.

  • 🇬🇧United Kingdom joachim

    Good start, thanks!
    I've made a few comments. But also, please can you work with an MR rather than post patches?

    1. +++ b/localgov_waste_collection.api.php
      @@ -0,0 +1,20 @@
      + *   plugin_id => $plugin_definition.
      

      We don't normally define arrays with => like that, but instead say what the key and the value are. You can just say 'keyed by the plugin ID' here.

    2. +++ b/localgov_waste_collection.api.php
      @@ -0,0 +1,20 @@
      +{
      

      The { is on the wrong line, and this needs sample code -- you can crib from one of those other hooks I mentioned. It can be something simple like changing the label.

  • Pipeline finished with Success
    23 days ago
    Total: 308s
    #522845
Production build 0.71.5 2024