public function ContentHubUserSession::__construct in Acquia Content Hub 8.2
Same name and namespace in other branches
- 8 src/Session/ContentHubUserSession.php \Drupal\acquia_contenthub\Session\ContentHubUserSession::__construct()
Constructs a new Content Hub user session.
Parameters
string $render_role: Role id.
Overrides UserSession::__construct
File
- src/
Session/ ContentHubUserSession.php, line 28
Class
- ContentHubUserSession
- An account implementation representing a Content Hub user.
Namespace
Drupal\acquia_contenthub\SessionCode
public function __construct($render_role) {
$this->renderRole = $render_role;
parent::__construct([
'roles' => $this
->getContentHubRenderUserRoles($render_role),
]);
}