The return type for the getIdFromInput() method on the ProviderPluginInterface, should be string|false, not just string, as stated on the current method annotations. Both the Vimeo and YouTube plugin implementations will return string or FALSE. I had to create a custom video plugin and had linter issues as a consequence.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3486794-wrong-return-type.patch | 523 bytes | josé trindade |
Issue fork video_embed_field-3486794
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
josé trindade commentedComment #3
divyansh.gupta commentedReviewing it!
Comment #5
divyansh.gupta commentedI reviewed the patch and it was successfully applied, so provided an MR for the same,
Please review.
Comment #6
kul.pratap commentedPlease resolve the pipeline issue.
Comment #7
divyansh.gupta commentedFound that pipelines were failing because forked branch was some commits behind the main branch, so rebased my forked branch and ran the pipeline again and now all the pipelines are passing without errors/warnings.
Please review.
Comment #8
kul.pratap commentedSince now the pipeline is green so moving this to RTBC.
Comment #11
mably commentedComment #12
mably commented