I've created a custom provider similar to Vimeo.php however, it's not listed with other providers when editing a content type field. It's immediately found if I put my provider file (mediamp.php) along with the module source code in

docroot/modules/contrib/video_embed_field/src/Plugin/video_embed_field/Provider/

Where should my custom provider php file be put? In a custom module's folder didn't work.

Comments

pbcelery created an issue. See original summary.

pbcelery’s picture

Issue summary: View changes
pbcelery’s picture

Issue summary: View changes
sam152’s picture

Status: Active » Closed (works as designed)

This is a plugin. You might want to read the generic plugin docs to help you get started: https://www.drupal.org/docs/8/api/plugin-api/plugin-api-overview

You should add the plugin to your own module, not the contrib module you have installed.