Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
- Has the d8 version been tested yet, would additional assistance in testing the d8 port help to get a branch out?
- Does this module change the exif value to permanently make the orientation change, or does it add an additional instruction to rotate the image after the exif rotation info is applied?
In order to avoid Call to undefined method BaseFieldDefinition::getThirdPartySettings() you want to make sure you're calling getThirdPartySetting() only on config fields (objects of type ThirdPartySettingsInterface).
This is in function simple_image_rotate_rotate_image():
if ($field instanceof ThirdPartySettingsInterface) {
if ($field->getThirdPartySetting('simple_image_rotate', 'enable_rotate') == 1) {
...
Also don't forget to set the use at the top of the .module file:
use Drupal\Core\Config\Entity\ThirdPartySettingsInterface;
Many thanks leevh for the D8 port of this project. :)
I have pushed the dev and alpha release 8.x-1.0-alpha1. Also added leevh as maintainer the this project. Much appreciated.
Comments
Comment #1
Anonymous (not verified) commentedjoeking60 created an issue. See original summary.
Comment #2
khoomy commentedHi joeking60
Yes I have plan to port into D8 but not started yet. Will start work D8 version soon.
Khoomy
Comment #3
w01f commentedAlso very interested in this module!
Comment #4
Anonymous (not verified) commentedI'm also waiting for a drupal 8 version of this module? Thanks.
Comment #5
leevh commentedHi khoomy, I've made a d8 port of your module here: https://github.com/leevh/simple_image_rotate
Hope this helps, thanks for the handy module!
Comment #6
khoomy commentedHi leevh
Thanks for the D8 port, I will look into this and will create D8 branch after testing.
I will add you in the credit list. :)
Khoomy
Comment #7
w01f commentedWondering 2 things!
- Has the d8 version been tested yet, would additional assistance in testing the d8 port help to get a branch out?
- Does this module change the exif value to permanently make the orientation change, or does it add an additional instruction to rotate the image after the exif rotation info is applied?
Comment #8
stebentje commentedDrupal 8 module is working perfectly for me! Thanks
Comment #9
Atuan#5 Works great. Thank you very much, leevh
Comment #10
sitiveni commentedHi there.
In order to avoid
Call to undefined method BaseFieldDefinition::getThirdPartySettings()you want to make sure you're calling getThirdPartySetting() only on config fields (objects of type ThirdPartySettingsInterface).This is in function simple_image_rotate_rotate_image():
Also don't forget to set the
useat the top of the .module file:Comment #11
ipwa commented#5 works for me!
Comment #12
khoomy commentedMany thanks leevh for the D8 port of this project. :)
I have pushed the dev and alpha release 8.x-1.0-alpha1. Also added leevh as maintainer the this project. Much appreciated.