/** * Get the HTML code to embed an asset. * * @param Asset $asset * * @return string */ public static function assetEmbed(AssetInterface $asset, $height = null, $width = null) { return (string) $asset->getEmbedHtml($height, $width); }
public function embed() { return $this->asset->getEmbedHtml(); }