Documentation

setExtraField

void public
\Bitrix\Main\UrlPreview\HtmlDocument::setExtraField(
 string $fieldName,
 string $fieldValue
);

Non-static method sets additional metadata fields.

Parameters

ParameterDescriptionVersion
$fieldNameField name. Available values:
  • FAVICON: $fieldValue must contain URL for favicon
  • IMAGES: $fieldValue must contain array with image URLs, found in document.
  • В других случаях $fieldValue must contain simple text.
$fieldValueField value.

Example



© «Bitrix24», 2001-2022
Up