You are here

protected function MarkerIconService::fileIsManageableSvg in Geofield Map 8.2

Generate File Managed Url from fid, and image style.

Parameters

\Drupal\file\FileInterface $file: The file tp check.

Return value

bool The bool result.

2 calls to MarkerIconService::fileIsManageableSvg()
MarkerIconService::getFileManagedUrl in src/Services/MarkerIconService.php
Generate File Managed Url from fid, and image style.
MarkerIconService::getLegendIconFromFid in src/Services/MarkerIconService.php
Generate Legend Icon from Uploaded File.

File

src/Services/MarkerIconService.php, line 139

Class

MarkerIconService
Provides an Icon Managed File Service.

Namespace

Drupal\geofield_map\Services

Code

protected function fileIsManageableSvg(FileInterface $file) {

  /* @var \Drupal\file\Entity\file $file */
  return $this->moduleHandler
    ->moduleExists('svg_image') && $file instanceof FileInterface && svg_image_is_file_svg($file);
}