spicywebau / craft-embedded-assets

Manage YouTube videos, Instagram photos, Twitter posts and more as first class assets in Craft CMS
MIT License
171 stars 34 forks source link

Accept `null` in the `Variable::get()` method #251

Open nstCactus opened 3 months ago

nstCactus commented 3 months ago

This let you call the craft.embeddedassets.get(asset) method from templates without having to check first whether asset is null.

If it is, just return null.