• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Relation/RelationManager.php
  • Класс: Bitrix\Crm\Relation\RelationManager
  • Вызов: RelationManager::isShowChildrenTab
protected function isShowChildrenTab(int $parentEntityTypeId, Relation $relation): bool
{
	if (!$relation->isChildrenListEnabled())
	{
		return false;
	}

	if (!$relation->isPredefined())
	{
		return true;
	}

	return (
		isset($this->getClientFieldEntityTypeIds()[$parentEntityTypeId])
		&& \CCrmOwnerType::isUseDynamicTypeBasedApproach($relation->getChildEntityTypeId())
	);
}