Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Override api class

Started by Thomas Vantuycom 5 years ago · 1 replies · 655 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 complanar, 5 days ago
0 117 5 days ago
Plugins · by Vladimir Novak, 1 month ago
3 581 1 month ago
Plugins · by Mathieu Lecouturier, 1 month ago
3 394 1 month ago
Plugins · by Slebeig, 2 months ago
1 509 2 months ago
Plugins · by Rene, 3 months ago
2 701 3 months ago