protected function ImagemagickOperationTrait::getFormatMapper in Image Effects 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/ImageToolkit/Operation/imagemagick/ImagemagickOperationTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickOperationTrait::getFormatMapper()
- 8 src/Plugin/ImageToolkit/Operation/imagemagick/ImagemagickOperationTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickOperationTrait::getFormatMapper()
Returns the format mapper service.
Return value
\Drupal\imagemagick\ImagemagickFormatMapperInterface The format mapper service.
File
- src/
Plugin/ ImageToolkit/ Operation/ imagemagick/ ImagemagickOperationTrait.php, line 23
Class
- ImagemagickOperationTrait
- Trait for ImageMagick image toolkit operations.
Namespace
Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagickCode
protected function getFormatMapper() {
if (!$this->formatMapper) {
$this->formatMapper = \Drupal::service('imagemagick.format_mapper');
}
return $this->formatMapper;
}