Hook overrideImageLink

Informations

Override product image link Allows to fully override the image URL returned by the getImageLink() method.
Hook overrideImageLink
Locations
FO
Type action
Origin core
Aliases
Description Allows to fully override the image URL returned by the getImageLink() method.

This hook has an $array_return parameter set to true (module output will be set by name in an array, see explaination here).

Located in

Origin File
core classes/Link.php

Call of the Hook in the origin file

Hook::exec(
            'overrideImageLink',
            [
                'name' => $name,
                'ids' => $idImage,
                'type' => $type,
                'extension' => $extension,
            ],
            null,
            true
        );