getSources
\Bitrix\Landing\Source\Selector::getSources( array $config = [] )
Static method for getting description of all available sources for specified event. Create inside itself an object with passed settings and returns result for called method [link=10225100]\Bitrix\Landing\Source\Selector::getSourcesDescription[/link].
Parameters
Parameters | Description | Available from version |
---|---|---|
config | Array with settings containing the following keys:
|
Returned value
Returned value - array. Array keys - unique source indexes. Each array element describes a single source in the following format:
- id - unique source index (string)
- name - source name (string)
- url - [ filter => Customizable filter for data retrieval ],
- sort - fields for source data sorting
- references - list of source fields for view setup inside landing block
© «Bitrix24», 2001-2025