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 commentedHere is the patch, please review.
Comment #3
steven jones commentedThanks very much for the patch, but I think that
ImageAPIOptimizePipelineFormBasewill need to include theDrupal\Core\Messenger\MessengerTraitas per https://www.drupal.org/node/2774931 ?Comment #4
steven jones commentedTake my comment back, the trait is in FormBase, isn't it?
Comment #6
steven jones commentedThanks very much for the patch!