Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

Hook actionWatermark

Informations

Watermark
Hook actionWatermark
Locations
FO
Type action
Origin core
Aliases [watermark]
Description

Located in

Origin File
core src/Adapter/Product/Image/Uploader/ProductImageUploader.php

Parameters details

    <?php
    array(
      'id_image' => (int) Image ID,
      'id_product' => (int) Product ID
    );

Call of the Hook in the origin file

dispatchWithParameters(
            'actionWatermark',
            ['id_image' => $imageId->getValue(), 'id_product' => $productId]
        )