Jarves\AssetHandler\AssetInfo::getContentType PHP Метод

getContentType() публичный Метод

public getContentType ( ) : string
Результат string
    public function getContentType()
    {
        return $this->contentType;
    }

Usage Example

Пример #1
0
 public function hasAsset(AssetInfo $assetInfo, $assets = null)
 {
     if (!$assets) {
         $assets = $this->assetsInfo;
     }
     $assets = $assets ? call_user_func_array('array_merge', $assets) : [];
     foreach ($assets as $asset) {
         if (!$assetInfo->getPath() && $assetInfo->getContent() === $asset->getContent() && $assetInfo->getContentType() === $asset->getContentType()) {
             return true;
         }
         if ($asset->getPath() && $asset->getPath() === $assetInfo->getPath()) {
             return true;
         }
     }
     return false;
 }
All Usage Examples Of Jarves\AssetHandler\AssetInfo::getContentType