-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
!!! FEATURE: Add getVariant(string, string) to VariantSupportInterface #2701
Conversation
This adds a new method to the `VariantSupportInterface`, allowing to fetch a preset-generated variant of an image directly. public function getVariant(string $presetIdentifier, string $presetVariantName): ?ImageVariant;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something I said we would need from the beginning YAY
All for it.
Looks good, but it should be marked breaking (!!!) as it changes an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I assume it works as expected ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by reading, the api method makes sense and i already know a usecase in kaleidoscope for that.
Even if the implementation would have an issue we always do a bugfix release.
Hehe… me too: sitegeist/Sitegeist.Kaleidoscope#14 |
By now I realized this is not really future-proof, as it returns |
Good point.. and we all missed it while reviewing it 🙈 |
This adds a new method to the
VariantSupportInterface
, allowingto fetch a preset-generated variant of an image directly.