• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/integration/ui/entityselector/projectrolesprovider.php
  • Класс: BitrixSocialNetworkIntegrationUIEntitySelectorProjectRolesProvider
  • Вызов: ProjectRolesProvider::makeRoles
private function makeRoles(): array
{
	$roles = [];

	$projectId = $this->getOption('projectId');

	$roles[] = new Item(
		[
			'id' => $projectId . '_' . SONET_ROLES_OWNER,
			'entityId' => $this->entityId,
			'entityType' => 'role',
			'title' => Loc::getMessage('SES_PROJECT_OWNER_ROLE'),
			'tabs' => ['project-roles']
		]
	);

	$roles[] = new Item(
		[
			'id' => $projectId . '_' . SONET_ROLES_MODERATOR,
			'entityId' => $this->entityId,
			'entityType' => 'role',
			'title' => Loc::getMessage('SES_PROJECT_MODERATOR_ROLE'),
			'tabs' => ['project-roles']
		]
	);

	$roles[] = new Item(
		[
			'id' => $projectId . '_' . SONET_ROLES_USER,
			'entityId' => $this->entityId,
			'entityType' => 'role',
			'title' => Loc::getMessage('SES_PROJECT_EMPLOYER_ROLE'),
			'tabs' => ['project-roles']
		]
	);

	return $roles;
}