• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/userfield/internal/registry.php
  • Класс: BitrixMainUserFieldInternalRegistry
  • Вызов: Registry::addFactoriesByEvent
protected function addFactoriesByEvent(): void
{
	foreach(EventManager::getInstance()->findEventHandlers('main', static::EVENT_NAME) as $handler)
	{
		$eventResult = ExecuteModuleEventEx($handler);
		if(is_array($eventResult))
		{
			foreach($eventResult as $factory)
			{
				if($factory instanceof TypeFactory)
				{
					$this->registerFactory($factory);
				}
			}
		}
	}
}