Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Override api class

Started by Thomas Vantuycom 6 years ago · 1 replies · 833 views
6 years ago

I'd like to override the \Grav\Common\Page\Medium\ImageMedium api class to change the url function so that images are served from Cloudinary. How would one go about this in a plugin?

6 years ago

As a starter, I'd check onMediaLocate event hook. But I guess you'd just have to debug what you get there 🤔 Not much info about it

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Cédric, 2 years ago
4 537 2 days ago
Plugins · by DrPen, 1 month ago
2 512 1 month ago
Plugins · by renedebaaij, 2 months ago
1 385 1 month ago
Plugins · by Thomas, 2 months ago
1 403 1 month ago
Plugins · by complanar, 2 months ago
6 730 2 months ago