Documentation

setMetadataImage

boolean public static
\Bitrix\Main\UrlPreview\UrlPreview::setMetadataImage(
 integer $id,
 string $imageUrl
);

Static method sets image with specified ID, shown for rich link.

Parameters

ParameterDescriptionVersion
$idID for image, shown for rich link.
$imageUrlImage URL.

Exceptions

Example



© «Bitrix24», 2001-2022
Up