Hi, this module is exactly what I am looking for ;-) Thanx for your work!!
I need to implement a provider which is NOT public available and not interesting for other users, as it is an internal video provider.
Is there a way to add my custom provider with a custom module which alters your module instead of using a patch?

Comments

vistree created an issue. See original summary.

marcoscano’s picture

Category: Feature request » Support request
Status: Active » Fixed

Thanks for your interest!
You don't need to write a patch, you can download/enable this module, and then in a custom module, you create:
- a formatter plugin that extends Drupal\media_remote\Plugin\Field\FieldFormatter\MediaRemoteFormatterBase
- a theme function/template to render things as you expect.
Here's an example of this type of modification, adding support for a new provider:
https://git.drupalcode.org/project/media_remote/-/merge_requests/2/diffs

Hope this helps!

vistree’s picture

Thanx @marcoscano, this is really helpful. The example you linked is exactly what I looked at - and therefore I thought new providers need to be added as a patch. Good to see that you can extend the class by a custom module ;-)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.