Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_custom_blocks
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_custom_blocks
Commits
eb0f341e
Commit
eb0f341e
authored
3 months ago
by
Kevin Paxman
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-7241: code standards
parent
917f62b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!256
ISTWCMS-7241: add identifier for YouTube playlists
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/EventSubscriber/UwCblRemoteVideoEventSubscriber.php
+1
-1
1 addition, 1 deletion
src/EventSubscriber/UwCblRemoteVideoEventSubscriber.php
with
1 addition
and
1 deletion
src/EventSubscriber/UwCblRemoteVideoEventSubscriber.php
+
1
−
1
View file @
eb0f341e
...
...
@@ -72,7 +72,7 @@ class UwCblRemoteVideoEventSubscriber extends UwCblBase implements EventSubscrib
// Check for YouTube playlist.
elseif
(
preg_match
(
$pattern
=
'/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.?be)\/(playlist\?list=)([a-zA-Z0-9_-]+)$/'
,
$remote_video
[
'view'
][
'url'
]))
{
// Set the type of video to YouTube playlist
// Set the type of video to YouTube playlist
.
$remote_video
[
'view'
][
'type'
]
=
'YouTube playlist'
;
}
// Check for Vimeo.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment