• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/numerator/numerator.php
  • Класс: BitrixMainNumeratorNumerator
  • Вызов: Numerator::getGeneratorTypesByTemplate
private function getGeneratorTypesByTemplate()
{
	$generatorTypes = [];
	foreach ($this->getTypeToTemplateWords() as $type => $words)
	{
		foreach ($words as $word)
		{
			if (mb_stripos($this->template, $word) !== false)
			{
				$generatorTypes[$type] = 1;
			}
		}
	}

	return array_keys($generatorTypes);
}