public function ImageStyles::__construct in Consumer Image Styles 4.x
Same name and namespace in other branches
- 8.3 src/Plugin/jsonapi/FieldEnhancer/ImageStyles.php \Drupal\consumer_image_styles\Plugin\jsonapi\FieldEnhancer\ImageStyles::__construct()
File
- src/
Plugin/ jsonapi/ FieldEnhancer/ ImageStyles.php, line 41
Class
- ImageStyles
- Perform additional manipulations to timestamp fields.
Namespace
Drupal\consumer_image_styles\Plugin\jsonapi\FieldEnhancerCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ImageStylesProviderInterface $image_styles_provider, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->imageStylesProvider = $image_styles_provider;
$this->entityTypeManager = $entity_type_manager;
}