-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPENEUROPA-1316: Media entity video basic handling #3
Conversation
cb48513
to
a4d1b83
Compare
$this->drupalGet("media/add/remote_video"); | ||
$page->fillField("oe_media_oembed_video[0][value]", $video_url); | ||
$page->pressButton('Save'); | ||
$this->createScreenshot($this->root . '/screenshot.jpg'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove debug statement.
* | ||
* @var array | ||
*/ | ||
public $videos = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see if we can instead use a @dataProvider
method instead of a public variable with a list of video URLs.
See for example in core: UnroutedUrlTest:testIsExternal()
and its provider method: providerFromUri
oe_media.module
Outdated
|
||
/** | ||
* @file | ||
* Media module. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the Media module.
oe_media.module
Outdated
*/ | ||
|
||
/** | ||
* Alters the information provided in \Drupal\media\Annotation\MediaSource. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implements hook_media_source_info_alter().
/** | ||
* @file | ||
* Media module. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing strict type declaration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
oe_media.module
Outdated
* @param array $sources | ||
* The array of media source plugin definitions, keyed by plugin ID. | ||
*/ | ||
function oe_media_media_source_info_alter(array &$sources) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing return type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
8988889
to
d61fe4b
Compare
oe_media.module
Outdated
/** | ||
* Implements hook_media_source_info_alter(). | ||
* | ||
* Alters the information provided in \Drupal\media\Annotation\MediaSource. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The information being altered is not provided inside the annotation. Only the documentation is in the that docblock. Please correct the documentation to:
Adding Daily Motion to the list of providers exposed by the OEmbed video source plugin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
fab0582
to
9a66234
Compare
Implement remote video source type with 3 providers.