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.
By j4 on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
FAPI callbacks for file/image widgets have been moved to widget classes. The next conversion has been introduced:
Before | Converted |
---|---|
file_field_widget_value() |
\Drupal\file\Plugin\Field\FieldWidget\FileWidget::value() |
file_field_widget_value() |
\Drupal\file\Plugin\Field\FieldWidget\FileWidget::value() |
file_field_widget_multiple_count_validate() |
\Drupal\file\Plugin\Field\FieldWidget\FileWidget::validateMultipleCount() |
file_field_widget_process() |
\Drupal\file\Plugin\Field\FieldWidget\FileWidget::process() |
file_field_widget_process_multiple() |
\Drupal\file\Plugin\Field\FieldWidget\FileWidget::processMultiple() |
_file_field_get_description_from_element() |
\Drupal\file\Plugin\Field\FieldWidget\FileWidget::getDescriptionFromElement() |
file_field_widget_submit() |
\Drupal\file\Plugin\Field\FieldWidget\FileWidget::submit() |
image_field_widget_process() |
\Drupal\image\Plugin\Field\FieldWidget\ImageWidget::process() |
_image_field_required_fields_validate() |
\Drupal\image\Plugin\Field\FieldWidget\ImageWidget::validateRequiredFields() |
Impacts:
Module developers