• Модуль: translate
  • Путь к файлу: ~/bitrix/modules/translate/lib/index/pathindex.php
  • Класс: BitrixTranslateIndexPathIndex
  • Вызов: PathIndex::detectModuleId
public function detectModuleId(): ?string
{
	$arr = explode('/', $this->getPath());
	$pos = array_search('modules', $arr);
	if ($pos !== false)
	{
		if ($arr[$pos - 1] === 'bitrix' && !empty($arr[$pos + 1]))
		{
			return $arr[$pos + 1];
		}
	}

	return null;
}