Closed (fixed)
Project:
Media Remote
Version:
1.1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2022 at 06:20 UTC
Updated:
18 Feb 2022 at 08:49 UTC
Jump to comment: Most recent
Comments
Comment #2
marcoscanoThanks 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!
Comment #3
vistree commentedThanx @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 ;-)