-
Notifications
You must be signed in to change notification settings - Fork 16
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
Issue #3475695 by joshua1234511, richardgaunt, sime, toby-wild: civictheme_media_get_variables not returning anything for civictheme_remote_video media type #1316
base: develop
Are you sure you want to change the base?
Conversation
afc024b
to
f26fc0d
Compare
'changed' => civictheme_format_datetime($media->getChangedTime(), 'civictheme_short_date'), | ||
]; | ||
|
||
if ($media->bundle() === 'civictheme_remote_video') { |
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.
We can make it more extensible with:
if ($media->bundle() === 'civictheme_remote_video') { | |
if ($media->getSource() instanceof \Drupal\media\Plugin\media\Source\OEmbed) { |
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.
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.
@joshua-salsadigital Minor change to make it more extensible
… (remote video) in Generic.
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.
@joshua-salsadigital Thanks for reminding me.
https://www.drupal.org/project/civictheme/issues/3475695
Checklist before requesting a review
Issue #123456 by drupal_org_username: Issue title
Changed
section about WHY something was done if this was not a normal implementationChanged
Screenshots