Video has its own Plugin and annotation. It could be handy to allow individual definitions to be altered. This issue is raised in relation to another issue: https://www.drupal.org/node/2827965 where the definition is insufficient for the purpose and can be easily changed with a hook.

Comments

New Zeal created an issue. See original summary.

heshanlk’s picture

Status: Active » Closed (works as designed)

You don't need a plugin alter for this, what you can do is implement a new video provider plugin with the RegX you have, an example can be found here https://github.com/heshanlk/Video-Provider-YouTube-Example.

Thanks

NewZeal’s picture

Yes, thanks, I am aware of that, but I also know you can create an alter hook so the plugin info can be altered, which in the case of the linked issue is a good solution. Anyway, I accept that you want to close this issue and that is fine.

qudec’s picture

I think it could be useful to talk again about his : what about provider upgrade ?
See : https://www.drupal.org/project/video/issues/2938554
If I follow what heshanlk said, I should create a second plugin for Vimeo provider ?

heshanlk’s picture

Status: Closed (works as designed) » Postponed