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
drupal-check results on commit hash:
source : [git] https://git.drupal.org/project/imageapi_optimize 3daf4e61ede57598a9b9b6f1568bc6b146846704
source : http://cgit.drupalcode.org/imageapi_optimize
------ ---------------------------------------------------
Line src/Form/ImageAPIOptimizePipelineAddForm.php
------ ---------------------------------------------------
17 Call to deprecated function drupal_set_message().
------ ---------------------------------------------------
------ ---------------------------------------------------
Line src/Form/ImageAPIOptimizePipelineEditForm.php
------ ---------------------------------------------------
221 Call to deprecated function drupal_set_message().
244 Call to deprecated function drupal_set_message().
------ ---------------------------------------------------
------ ---------------------------------------------------
Line src/Form/ImageAPIOptimizePipelineFlushForm.php
------ ---------------------------------------------------
38 Call to deprecated method urlInfo() of class
Drupal\Core\Entity\EntityInterface.
46 Call to deprecated function drupal_set_message().
------ ---------------------------------------------------
------ -----------------------------------------------
Line src/Form/ImageAPIOptimizePipelineFormBase.php
------ -----------------------------------------------
76 Call to deprecated method urlInfo() of class
Drupal\Core\Entity\EntityInterface.
------ -----------------------------------------------
------ ---------------------------------------------------
Line src/Form/ImageAPIOptimizeProcessorDeleteForm.php
------ ---------------------------------------------------
46 Call to deprecated method urlInfo() of class
Drupal\Core\Entity\EntityInterface.
71 Call to deprecated function drupal_set_message().
72 Call to deprecated method urlInfo() of class
Drupal\Core\Entity\EntityInterface.
------ ---------------------------------------------------
------ ---------------------------------------------------
Line src/Form/ImageAPIOptimizeProcessorFormBase.php
------ ---------------------------------------------------
95 Call to deprecated method urlInfo() of class
Drupal\Core\Entity\EntityInterface.
126 Call to deprecated function drupal_set_message().
127 Call to deprecated method urlInfo() of class
Drupal\Core\Entity\EntityInterface.
------ ---------------------------------------------------
------ ----------------------------------------------
Line src/ImageAPIOptimizePipelineListBuilder.php
------ ----------------------------------------------
75 Call to deprecated method urlInfo() of class
Drupal\Core\Entity\EntityInterface.
------ ----------------------------------------------
[ERROR] Found 13 errors
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | drupal_9_deprecated_code-3042800-2.patch | 6.33 KB | Sergiu Stici |
Comments
Comment #2
Sergiu Stici CreditAttribution: Sergiu Stici at FFW commentedHere is the patch, please review.
Comment #3
Steven Jones CreditAttribution: Steven Jones at ComputerMinds commentedThanks very much for the patch, but I think that
ImageAPIOptimizePipelineFormBase
will need to include theDrupal\Core\Messenger\MessengerTrait
as per https://www.drupal.org/node/2774931 ?Comment #4
Steven Jones CreditAttribution: Steven Jones at ComputerMinds commentedTake my comment back, the trait is in FormBase, isn't it?
Comment #6
Steven Jones CreditAttribution: Steven Jones at ComputerMinds commentedThanks very much for the patch!