Documentation

addString

boolean public
\Bitrix\Main\Page\Asset::addString(
  $str,
 boolean $unique = false,
 string $location = \Bitrix\Main\Page\AssetLocation::AFTER_JS_KERNEL,
 null $mode = null
);

Non-static method adds string into site's <head>…</head> section.

Similar to the method CMain::AddHeadString in the old core.

Parameters

ParameterDescriptionVersion
$strString to be added.
$unique
$location
$mode

Example



© «Bitrix24», 2001-2024
Up