Hook adaptImageLink

Informations

Adapt product image link Allows to dynamically modify the final image URL generated by getImageLink(), using a reference to the final value.
Hook adaptImageLink
Locations
FO
Type action
Origin core
Aliases
Description Allows to dynamically modify the final image URL generated by getImageLink(), using a reference to the final value.

Located in

Origin File
core classes/Link.php

Call of the Hook in the origin file

Hook::exec(
            'adaptImageLink',
            [
                'protocol_content' => $this->protocol_content,
                'uri_path' => $uriPath,
                'url' => &$url,
                'name' => $name,
                'ids' => $idImage,
                'type' => $type,
                'extension' => $extension,
            ]
        );