• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Relation/RelationManager.php
  • Класс: Bitrix\Crm\Relation\RelationManager
  • Вызов: RelationManager::getRelationTabCodes
protected function getRelationTabCodes(int $parentEntityTypeId): array
{
	$relations = $this->getChildRelations($parentEntityTypeId);

	$tabCodes = [];
	foreach ($relations as $relation)
	{
		if ($this->isShowChildrenTab($parentEntityTypeId, $relation))
		{
			$childEntityTypeId = $relation->getChildEntityTypeId();
			$tabCode = mb_strtolower(
				self::TAB_NAME_RELATION
				. \CCrmOwnerType::ResolveName($childEntityTypeId)
			);
			$tabCodes[$tabCode] = $childEntityTypeId;
		}
	}

	return $tabCodes;
}