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.
The documentation comment for editor_field_formatter_info_alter()
is the following one.
/**
* Implements hook_form_FORM_ID_alter() for \Drupal\filter\FilterFormatListBuilder.
*
* Implements hook_field_formatter_info_alter().
*
* @see quickedit_field_formatter_info_alter()
*/
That documentation comment is wrong, as the function is not an implementation of the first hook, but the second hook. The fist line needs to be removed, as that is an implementation of hook_field_formatter_info_alter()
done from editor.module.
Comment | File | Size | Author |
---|---|---|---|
#3 | documentation-field-formatter-3111658-3.patch | 464 bytes | Deepthi kumari |
Comments
Comment #2
Deepthi kumari CreditAttribution: Deepthi kumari as a volunteer and at TA Digital commentedComment #3
Deepthi kumari CreditAttribution: Deepthi kumari as a volunteer and at TA Digital commentedApplied Patch. Please review.
Comment #4
rpayanmThanks.
LGTM
Comment #6
rpayanmComment #7
rpayanmI'm changing it back to RTBC.
Comment #8
alexpottCommitted and pushed bf2240bfd8 to 9.0.x and 990e3666b3 to 8.9.x and 421269ba52 to 8.8.x. Thanks!
Backported to 8.8.x as this is a docs fix.