Documentation

checkSiteMode

\Bitrix\Landing\Source\Selector::checkSiteMode(
   array $modeList
)

Method returns true, if current landing mode is found in the list of passed modes. Sources must check the current mode. For example, catalogs cannot be displayed in the site24 mode. See [link=16302172]handler example[/link]

Parameters

Method Description Available from version
$modeList array with available modes (from the list below):
  • \Bitrix\Landing\Source\Selector::SITE_MODE_PAGE - site24
  • \Bitrix\Landing\Source\Selector::SITE_MODE_STORE - store24
  • \Bitrix\Landing\Source\Selector::SITE_MODE_KNOWLEDGE - knowledge base (reserved)

© «Bitrix24», 2001-2024
Up