public function FilterImageResize::__construct in Image Resize Filter 8
FilterImageResize constructor.
Parameters
array $configuration:
string $plugin_id:
mixed $plugin_definition:
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity Repository.
\Drupal\Core\Image\ImageFactory $image_factory: Image Factory.
\Drupal\Core\Config\Config $system_file_config: The system file configuration.
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager.
\Drupal\Core\File\FileSystemInterface $file_system: The file system.
Overrides FilterBase::__construct
File
- src/
Plugin/ Filter/ FilterImageResize.php, line 75
Class
- FilterImageResize
- Provides a filter to resize images.
Namespace
Drupal\image_resize_filter\Plugin\FilterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ImageFactory $image_factory, Config $system_file_config, StreamWrapperManagerInterface $stream_wrapper_manager, FileSystemInterface $file_system) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->imageFactory = $image_factory;
$this->systemFileConfig = $system_file_config;
$this->streamWrapperManager = $stream_wrapper_manager;
$this->fileSystem = $file_system;
}