public function SessionWorkspaceNegotiator::applies in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workspaces/src/Negotiator/SessionWorkspaceNegotiator.php \Drupal\workspaces\Negotiator\SessionWorkspaceNegotiator::applies()
File
- core/
modules/ workspaces/ src/ Negotiator/ SessionWorkspaceNegotiator.php, line 56
Class
- SessionWorkspaceNegotiator
- Defines the session workspace negotiator.
Namespace
Drupal\workspaces\NegotiatorCode
public function applies(Request $request) {
// This negotiator only applies if the current user is authenticated.
return $this->currentUser
->isAuthenticated();
}