Documentation

showView

string public static
\Bitrix\Main\UrlPreview\UrlPreview::showView(
 array $userField,
 array $userFieldParams,
 string $cacheTag,
 boolean $edit = false
);

Non-static method returns HTMl code for rich links.

Parameters

ParameterDescriptionVersion
$userFieldUser field value.
$userFieldParamsUser field parameters.
$cacheTagCache tag for internal rich link caching (without parameters).
$editSpecifies method for link display. When false - returns HMTL code for showing rich link in preview mode. When true - returns HTML code for showing in edit mode.

Example



© «Bitrix24», 2001-2022
Up