Closed espensgr closed 1 year ago
That can be achieved with PHP using something like the following:
use spicyweb\embeddedassets\Plugin as EmbeddedAssets;
$embeddedAsset = EmbeddedAssets::$plugin->methods->getEmbeddedAsset($asset);
$html = $embeddedAsset ? $embeddedAsset->html : null;
What question would you like to ask?
I'm trying to add an api endpoint to Craft and want to get the same info in that as in the Twig template:
Is that possible and how to do that? Maybe add a section to det docs regarding this