trait ImagemagickOperationTrait 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
- 8 src/Plugin/ImageToolkit/Operation/imagemagick/ImagemagickOperationTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickOperationTrait
Trait for ImageMagick image toolkit operations.
Hierarchy
- trait \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\ImagemagickOperationTrait
File
- src/
Plugin/ ImageToolkit/ Operation/ imagemagick/ ImagemagickOperationTrait.php, line 8
Namespace
Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagickView source
trait ImagemagickOperationTrait {
/**
* The format mapper service.
*
* @var \Drupal\imagemagick\ImagemagickFormatMapperInterface
*/
protected $formatMapper;
/**
* Returns the format mapper service.
*
* @return \Drupal\imagemagick\ImagemagickFormatMapperInterface
* The format mapper service.
*/
protected function getFormatMapper() {
if (!$this->formatMapper) {
$this->formatMapper = \Drupal::service('imagemagick.format_mapper');
}
return $this->formatMapper;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ImagemagickOperationTrait:: |
protected | property | The format mapper service. | |
ImagemagickOperationTrait:: |
protected | function | Returns the format mapper service. |