Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Override api class

Started by Thomas Vantuycom 5 years ago · 1 replies · 511 views
5 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?

5 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 Slebeig, 5 days ago
1 104 5 days ago
Plugins · by Rene, 4 weeks ago
2 303 4 weeks ago
Plugins · by Xavier, 2 months ago
2 226 1 month ago
Plugins · by Luka Prinčič, 7 years ago
3 1413 2 months ago
Plugins · by Sebastian van de Meer, 2 months ago
1 322 2 months ago