Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

Is Embeddable Modifier

Recognizes YouTube, Vimeo, and Cloudflare Stream URLs as supported embed sources. This does not check whether the video exists or whether its owner permits embedding.

Plays nicely with the Video fieldtype and the embed_url modifier.

youtube: https://www.youtube.com/watch?v=s9F5fhJQo34
vimeo: https://vimeo.com/22439234
other: http://example.com/video.mp4
{{ youtube | is_embeddable }}
{{ vimeo | is_embeddable }}
{{ other | is_embeddable }}
@if (Statamic::modify($youtube)->isEmbeddable()->fetch()) ... @endif
@if (Statamic::modify($vimeo)->isEmbeddable()->fetch()) ... @endif
@if (Statamic::modify($other)->isEmbeddable()->fetch()) ... @endif
true
true
false