• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/entityselector/dialog.php
  • Класс: BitrixUIEntitySelectorDialog
  • Вызов: Dialog::load
public function load(): void
{
	$entities = [];
	foreach ($this->getEntities() as $entity)
	{
		if ($entity->hasDynamicLoad())
		{
			$entities[] = $entity->getId();
		}
	}

	if (empty($entities))
	{
		return;
	}

	$this->fillRecentItems($entities);
	if ($this->getContext() !== null)
	{
		$this->fillGlobalRecentItems($entities);
	}

	foreach ($entities as $entityId)
	{
		$this->getEntity($entityId)->getProvider()->fillDialog($this);
	}

	$this->loadRecentItems();
	$this->loadPreselectedItems();
}