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
The two effects share some code. OO allows us to refactor code in a way that removes that.
Proposed resolution
- Make FocalPointScaleAndCropImageEffect extend FocalPointCropImageEffect and rely on the latter to do the cropping part.
- Move functions from base image effect class to that image effect where code is needed.
- Since both effects now share common ground we don't need base class any more.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2657434_1.patch | 17.04 KB | slashrsm |
|
Comments
Comment #2
slashrsm CreditAttribution: slashrsm at Examiner.com commentedThis will conflict with #2626950: Depend on Crop API for storage, but shouldn't be to hard to resolve. I can also merge patches.
Comment #3
marcingy CreditAttribution: marcingy at Examiner.com commentedLooks good
Comment #4
bleen CreditAttribution: bleen at NBCUniversal commentedLets wait until #2626950: Depend on Crop API for storage lands before we move forward here
Comment #5
slashrsm CreditAttribution: slashrsm at MD Systems GmbH commentedIt seems that this is not relevant any more. Thanks!