- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/Tour/Base.php
- Класс: Bitrix\Crm\Tour\Base
- Вызов: Base::canShow
protected function canShow(): bool;
public function build(): string
{
if (!$this->canShow())
{
return '';
}
if ($this->isDeactivated())
{
return '';
}
ob_start();
global $APPLICATION;
$APPLICATION->IncludeComponent(
'bitrix:crm.whats_new',
$this->getComponentTemplate(),
[
'SLIDES' => $this->getSlides(),
'STEPS' => $this->getSteps(),
'OPTIONS' => $this->getOptions(),
'CLOSE_OPTION_CATEGORY' => $this->getOptionCategory(),
'CLOSE_OPTION_NAME' => $this->getOptionName(),
],
);
return ob_get_clean();
}