Documentation

getSourceNames

\Bitrix\Landing\Source\Selector::getSourceNames(
   array $config = []
)

Static method for getting list of source names.

Parameters

Parameters Description Available from version
config Array with settings containing the following keys:
  • SOURCE_EVENT_ID - ID for source collection event. Optional. Default value - \Bitrix\Landing\Source\Selector::EVENT_BUILD_SOURCE_LIST.
  • SOURCE_PATH - url (relative to site root) for opening form with filter settings. Optional. Default - \Bitrix\Landing\Source\Selector::SOURCE_PATH.

Returned value

Returns an array. Key - unique source index, value - name.



© «Bitrix24», 2001-2024
Up