Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The final argument for \Drupal\image\Plugin\Field\FieldFormatter\ImageFormatter::__construct()
is $image_style_storage
, but this is missing from the constructor's docblock.
Proposed resolution
Add the missing @param declaration.
Remaining tasks
write patch. DONE.
User interface changes
none.
API changes
none.
Data model changes
none.
Comment | File | Size | Author |
---|---|---|---|
#2 | document-imageformatter-constructor-2844213-2.patch | 1.04 KB | andrewmacpherson |
Comments
Comment #2
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedComment #3
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedI looked for other examples of EntityStorageInterface used in
@param
declarations, and copied the general style: "The [entity_type] storage."Comment #5
andrewmacpherson CreditAttribution: andrewmacpherson as a volunteer and at Annertech commentedComment #6
tstoecklerThanks, looks good to me!
Comment #7
catchCommitted/pushed to 8.3.x, thanks!