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 · 821 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 DrPen, 1 month ago
2 477 1 month ago
Plugins · by renedebaaij, 2 months ago
1 349 1 month ago
Plugins · by Thomas, 1 month ago
1 374 1 month ago
Plugins · by complanar, 2 months ago
6 698 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 641 2 months ago