/**
  * @param \Render\APIs\APIv1\CssAPI $api
  * @param \Render\Unit              $unit
  * @param \Render\ModuleInfo        $moduleInfo
  */
 public function css($api, $unit, $moduleInfo)
 {
     echo "START-CSS:" . $unit->getId() . "\n";
     echo "ASSET-PATH:" . $moduleInfo->getAssetPath('assetPath') . "\n";
     echo "ASSET-URL:" . $moduleInfo->getAssetUrl('assetUrl') . "\n";
     try {
         $url = $api->getMediaItem('ITEM-NOT-EXISTS')->getUrl();
     } catch (\Exception $ignore) {
         $url = '#exception';
     }
     echo "NOT-EXISTS-MEDIA-URL:" . $url . "\n";
     echo "END-CSS:" . $unit->getId() . "\n";
 }
 /**
  * @param \Render\APIs\APIv1\CssAPI $api
  * @param \Render\Unit              $unit
  * @param \Render\ModuleInfo        $moduleInfo
  */
 public function css($api, $unit, $moduleInfo)
 {
     echo "START-CSS:" . $unit->getId() . "\n";
     echo "ASSET-PATH:" . $moduleInfo->getAssetPath('assetPath') . "\n";
     echo "ASSET-URL:" . $moduleInfo->getAssetUrl('assetUrl') . "\n";
     echo "MEDIA-URL:" . $api->getMediaItem($api->getFormValue($unit, 'download'))->getUrl() . "\n";
     echo "IMAGE-URL:" . $api->getMediaItem($api->getFormValue($unit, 'image'))->getImage()->resizeCenter(100, 100)->getUrl() . "\n";
     try {
         $url = $api->getMediaItem('ITEM-NOT-EXISTS')->getUrl();
     } catch (\Exception $ignore) {
         $url = '#exception';
     }
     echo "NOT-EXISTS-MEDIA-URL:" . $url . "\n";
     echo "END-CSS:" . $unit->getId() . "\n";
 }