• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/kanban.php
  • Класс: Bitrix\Crm\Kanban
  • Вызов: Kanban::getComponentParams
public function getComponentParams(): array
{
	$params = [
		'ENTITY_TYPE_CHR' => $this->entity->getTypeName(),
		'ENTITY_TYPE_INT' => $this->entity->getTypeId(),
		'ENTITY_TYPE_INFO' => $this->entity->getTypeInfo(),
		'IS_DYNAMIC_ENTITY' => \CCrmOwnerType::isPossibleDynamicTypeId($this->entity->getTypeId()),
		'ENTITY_PATH' => $this->getEntityPath($this->entity->getTypeName()),
		'EDITOR_CONFIG_ID' => $this->entity->getEditorConfigId(),

		'HIDE_REST' => true,
		'REST_DEMO_URL' => '',

		'ITEMS' => [],
		'ADMINS' => $this->getAdmins(),
		'MORE_FIELDS' => (!$this->isOnlyItems() ? $this->getAdditionalFields() : []),
		'MORE_EDIT_FIELDS' => ($this->isOnlyItems() ? [] : $this->getAdditionalEditFields()),
		'FIELDS_DISABLED' => $this->disableMoreFields,
		'CATEGORIES' => [],

		'CURRENT_USER_ID' => $this->currentUserId,
		'CURRENCY' => $this->currency,
		'STATUS_KEY' => $this->entity->getStageFieldName(),
	];

	if (
		$this->entity->isRestPlacementSupported()
		&& Loader::includeModule('rest')
		&& is_callable('\Bitrix\Rest\Marketplace\Url::getConfigurationPlacementUrl')
	)
	{
		$params['HIDE_REST'] = \CUserOptions::getOption(
			static::OPTION_CATEGORY,
			static::OPTION_NAME_HIDE_REST_DEMO,
			false
		);
		$params['REST_DEMO_URL'] = Url::getConfigurationPlacementUrl(
			$this->entity->getConfigurationPlacementUrlCode(),
			static::REST_CONFIGURATION_PLACEMENT_URL_CONTEST
		);
	}

	if (!$this->isOnlyItems())
	{
		$inlineEditorParameters = $this->entity->getInlineEditorParameters();
		$params['FIELDS_SECTIONS'] = $inlineEditorParameters['fieldsSections'];

		if ($this->entity->isInlineEditorSupported())
		{
			$params['USER_FIELDS'] = $this->entity->getUserFields();

			$schemeFields = $inlineEditorParameters['schemeFields'];

			if ($schemeFields)
			{
				$params['SCHEME_INLINE'] = [
					[
						'name' => 'main',
						'title' => '',
						'type' => 'section',
						'elements' => array_values($schemeFields)
					]
				];
			}
		}
	}

	$this->prepareComponentParams($params);

	return $params;
}