Documentation

createByBitrixComponent

\Bitrix\Main\Web\Uri public
\Bitrix\Main\Engine\UrlManager::createByBitrixComponent(
 \CBitrixComponent $component,
 string $action,
 array $params = array()
);

Creates URL for the component which implements \Bitrix\Main\Engine\Contract\Controllerable and its action.

Parameters

ParameterDescriptionVersion
$component
$actionRelative action name.
$paramsAdditional parameters for action.

Exceptions

  • \Bitrix\Main\ArgumentNullException
  • \Bitrix\Main\ArgumentOutOfRangeException

Example



© «Bitrix24», 2001-2024
Up