- Модуль: rpa
- Путь к файлу: ~/bitrix/modules/rpa/lib/filter/type/provider.php
- Класс: Bitrix\Rpa\Filter\Type\Provider
- Вызов: Provider::prepareFields
public function prepareFields(): array
{
$result = [];
$fields = [
'ID' => [
'options' => [
'type' => 'number',
]
],
'TITLE' => [
'options' => [
'default' => true,
],
],
'CREATED_BY' => [
'options' => [
'default' => true,
'type' => 'dest_selector',
'partial' => true,
]
],
];
if(Driver::getInstance()->isAutomationEnabled())
{
$fields[TaskManager::TASKS_FILTER_FIELD] = [
'options' => [
'type' => 'list',
'partial' => true,
'default' => true,
],
];
}
foreach($fields as $name => $field)
{
$result[$name] = $this->createField($name, (!empty($field['options']) ? $field['options'] : []));
}
return $result;
}