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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andrewmacpherson created an issue. See original summary.

andrewmacpherson’s picture

andrewmacpherson’s picture

Status: Active » Needs review

I looked for other examples of EntityStorageInterface used in @param declarations, and copied the general style: "The [entity_type] storage."

Status: Needs review » Needs work

The last submitted patch, 2: document-imageformatter-constructor-2844213-2.patch, failed testing.

andrewmacpherson’s picture

Status: Needs work » Needs review
tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, looks good to me!

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.3.x, thanks!

  • catch committed 80ffa8c on 8.3.x
    Issue #2844213 by andrewmacpherson: Undocumented $image_style_storage...

  • catch committed 80ffa8c on 8.4.x
    Issue #2844213 by andrewmacpherson: Undocumented $image_style_storage...

  • catch committed 80ffa8c on 8.4.x
    Issue #2844213 by andrewmacpherson: Undocumented $image_style_storage...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.