incorrect @return docs for ElementInfoManagerInterface::getInfo()

Created on 13 April 2025, 13 days ago

Problem/Motivation

The docs say:

   * @return array
   *   An associative array describing the element types being defined. The
   *   array contains a sub-array for each element type, with the
   *   machine-readable type name as the key

but this is wrong, as the method is for getting the info for a *single* type, as the first line describes:

> * Retrieves the default properties for the defined element type.

There is no sub-array, and there is only one element type.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.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

Production build 0.71.5 2024