public function AutoOrientImageEffect::__construct in Image Effects 8
Same name and namespace in other branches
- 8.3 src/Plugin/ImageEffect/AutoOrientImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\AutoOrientImageEffect::__construct()
- 8.2 src/Plugin/ImageEffect/AutoOrientImageEffect.php \Drupal\image_effects\Plugin\ImageEffect\AutoOrientImageEffect::__construct()
Constructs an AutoOrientImageEffect object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Psr\Log\LoggerInterface $logger: A logger instance.
\Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $mime_type_guesser: The MIME type guessing service.
\Drupal\Core\File\FileSystemInterface $file_system: The file system service.
Overrides ImageEffectBase::__construct
File
- src/
Plugin/ ImageEffect/ AutoOrientImageEffect.php, line 62
Class
- AutoOrientImageEffect
- Automatically adjusts the orientation of an image resource.
Namespace
Drupal\image_effects\Plugin\ImageEffectCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, LoggerInterface $logger, MimeTypeGuesserInterface $mime_type_guesser, FileSystemInterface $file_system) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $logger);
$this->mimeTypeGuesser = $mime_type_guesser;
$this->fileSystem = $file_system;
}