public function ContentHubUserSession::__construct in Acquia Content Hub 8
Same name and namespace in other branches
- 8.2 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 26
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),
]);
}