• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/userfield/configcomponent.php
  • Класс: BitrixMainUserFieldConfigComponent
  • Вызов: ConfigComponent::init
protected function init(): void
{
	$this->errorCollection = new ErrorCollection();

	$request = Application::getInstance()->getContext()->getRequest();
	$this->entityId = !empty($this->arParams['entityId']) ? $this->arParams['entityId'] : $request->get('entityId');
	$this->moduleId = !empty($this->arParams['moduleId']) ? $this->arParams['moduleId'] : $request->get('moduleId');

	if(!$this->moduleId)
	{
		$this->errorCollection[] = $this->getNoModuleError();
		return;
	}
	$this->access = UserFieldAccess::getInstance($this->moduleId);
}