• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/numerator/numerator.php
  • Класс: BitrixMainNumeratorNumerator
  • Вызов: Numerator::getConfig
public function getConfig()
{
	$selfConfig = [
		static::getType() => [
			'name' => $this->name,
			'template' => $this->template,
			'id' => $this->id,
			'code' => $this->code,
			'type' => $this->type,
		],
	];
	$generatorConfigs = [];
	foreach ($this->generators as $generator)
	{
		if ($generator instanceof UserConfigurable)
		{
			$generatorConfigs[$this->getTypeOfGenerator($generator)] = $generator->getConfig();
		}
	}
	return $selfConfig + $generatorConfigs;
}