• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/component/base.php
  • Класс: Bitrix\Crm\Component\Base
  • Вызов: Base::addToolbar
public function addToolbar(\CBitrixComponentTemplate $template): void
{
	$parameters = $this->getToolbarParameters();
	if(!empty($parameters))
	{
		$bodyClass = $GLOBALS['APPLICATION']->GetPageProperty('BodyClass');
		$GLOBALS['APPLICATION']->SetPageProperty('BodyClass', ($bodyClass ? $bodyClass.' ' : '').'crm-pagetitle-view');

		$template->SetViewTarget('below_pagetitle', 100);
		global $APPLICATION;
		$APPLICATION->IncludeComponent(
			"bitrix:crm.toolbar",
			"",
			$parameters,
			$this
		);
		$template->EndViewTarget();
	}
}