Improve documentation of AttachmentsInterface methods

Created on 30 May 2024, 7 months ago
Updated 18 September 2024, 3 months ago

Problem/Motivation

Drupal\Core\Render\AttachmentsInterface is basically as bad as the legendary ContextInterface was "interface for context".
It doesn't document what is in the $attachments array neither does it elaborate on the difference between set() and add().

Steps to reproduce

Open AttachmentsInterface . Try to figure it out what it does. Try to figure out the difference between set and add.

Proposed resolution

1) Move AttachmentsResponseProcessorInterface::processAttachments() doxygen into the AttachmentsInterface class doxygen .
2) refer to the class doxygen in every method doxygen and processAttachments() too.
3) Explain set vs add.

Remaining tasks

Review

User interface changes

Not relevant.

API changes

Not relevant.

Data model changes

Not relevant.

Release notes snippet

Not relevant.

πŸ“Œ Task
Status

Fixed

Version

10.3 ✨

Component
DocumentationΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡¨πŸ‡¦Canada Charlie ChX Negyesi 🍁Canada

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024