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.
Updated: Comment #0
Problem/Motivation
https://api.drupal.org/api/drupal/core%21modules%21field%21field.depreca...
Under 'Deprecated' the wrong function is indicated as the Drupal 8 replacement.
"as of Drupal 8.0. Use Field::fieldInfo()->getBundleInstance($entity_type, $bundle, $field_name)."
(this function doesn't exist)
should be
"as of Drupal 8.0. Use Field::fieldInfo()->getInstance($entity_type, $bundle_name, $field_name)."
Proposed resolution
Patch to update the text.
Comment | File | Size | Author |
---|---|---|---|
#1 | doco-update-2071479-1.patch | 719 bytes | pameeela |
Comments
Comment #1
pameeela CreditAttribution: pameeela commentedPatch attached.
Comment #2
larowlanAssuming bot agrees
Comment #3
yched CreditAttribution: yched commentedIndeed, RTBC +1.
Thanks !
Comment #4
yched CreditAttribution: yched commentedtypo
Comment #5
alexpottCommitted a04c933 and pushed to 8.x. Thanks!