Documentation

getMetadataByUrl

array|false public static
\Bitrix\Main\UrlPreview\UrlPreview::getMetadataByUrl(
 string $url,
 boolean $addIfNew = true
);

Static method returns metadata, associated with specified URL.

Parameters

ParameterDescriptionVersion
$urlURL.
$addIfNewDefines to issue and save metadata, if it is not available in database.

Example



© «Bitrix24», 2001-2022
Up