You are here

public function WebformGroupManagerInterface::getWebformSubmissionUserGroupRoles in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_group/src/WebformGroupManagerInterface.php \Drupal\webform_group\WebformGroupManagerInterface::getWebformSubmissionUserGroupRoles()

Get group roles for a webform submission and a specified user account.

Parameters

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

\Drupal\Core\Session\AccountInterface $account: A user account.

Return value

\Drupal\group\Entity\GroupContentInterface|bool The group role for the webform submission. FALSE if no group roles is found for the webform submission.

1 method overrides WebformGroupManagerInterface::getWebformSubmissionUserGroupRoles()
WebformGroupManager::getWebformSubmissionUserGroupRoles in modules/webform_group/src/WebformGroupManager.php
Get group roles for a webform submission and a specified user account.

File

modules/webform_group/src/WebformGroupManagerInterface.php, line 68

Class

WebformGroupManagerInterface
Defines an interface for the webform group manager.

Namespace

Drupal\webform_group

Code

public function getWebformSubmissionUserGroupRoles(WebformSubmissionInterface $webform_submission, AccountInterface $account);