Skip to content
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

Make ImageDerivative resolver configurable to return additional properties #1120

Open
chasinhues opened this issue Nov 26, 2020 · 0 comments · May be fixed by #1122
Open

Make ImageDerivative resolver configurable to return additional properties #1120

chasinhues opened this issue Nov 26, 2020 · 0 comments · May be fixed by #1122

Comments

@chasinhues
Copy link

chasinhues commented Nov 26, 2020

ImageDerivative only returns image url, width, and height.

return [
'url' => $url,
'width' => $dimensions['width'],
'height' => $dimensions['height'],
];

I would like to be able to access other properties of the entity as well, such as ID, filename, etc.

@chasinhues chasinhues changed the title Add image ID to image derivative Make ImageDerivative resolver configurable to return additional properties Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants