• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/integration/ui/entityselector/projecttagprovider.php
  • Класс: BitrixSocialNetworkIntegrationUIEntitySelectorProjectTagProvider
  • Вызов: ProjectTagProvider::fillDialog
public function fillDialog(Dialog $dialog): void
{
	$dialog->addTab(
		new Tab([
			'id' => 'all',
			'title' => Loc::getMessage('SOCNET_ENTITY_SELECTOR_PROJECT_TAG_TAB_TITLE'),
			'stub' => true,
		])
	);

	$options = $this->getOptions();
	if ($options['groupId'])
	{
		$dialog->addItems(
			$this->getTagItems(['selected' => true])
		);
	}

	if ($dialog->getItemCollection()->count() < self::$maxCount)
	{
		$this->fillWithRecentTags($dialog);
	}
}