incorrect sample code in docs for hook_library_info_build

Created on 19 July 2023, over 1 year ago
Updated 2 July 2024, 6 months ago

API page: https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!theme.api....

The docs say:

> array[] An array of library definitions to register, keyed by library ID. The library ID will be prefixed with the module name automatically.

But the sample code prefixes the library names with the module name:

> $libraries['mymodule.zombie'] = [

This is incorrect and confusing - there is no need to prefix like this.

πŸ› Bug report
Status

Fixed

Version

11.0 πŸ”₯

Component
DocumentationΒ  β†’

Last updated 1 day ago

No maintainer
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

Production build 0.71.5 2024