Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

WorkspaceIdNegotiatorInterface.php

Namespace

Drupal\workspaces\Negotiator

File

core/modules/workspaces/src/Negotiator/WorkspaceIdNegotiatorInterface.php

View source
<?php

namespace Drupal\workspaces\Negotiator;

use Symfony\Component\HttpFoundation\Request;

/**
 * Interface for workspace negotiators that return only the negotiated ID.
 */
interface WorkspaceIdNegotiatorInterface {
    
    /**
     * Performs workspace negotiation.
     *
     * @param \Symfony\Component\HttpFoundation\Request $request
     *   The HTTP request.
     *
     * @return string|null
     *   A valid workspace ID if the negotiation was successful, NULL otherwise.
     */
    public function getActiveWorkspaceId(Request $request) : ?string;

}

Interfaces

Title Deprecated Summary
WorkspaceIdNegotiatorInterface Interface for workspace negotiators that return only the negotiated ID.
RSS feed
Powered by Drupal