You are here

class DefaultWorkspaceNegotiator in Multiversion 8

Hierarchy

Expanded class hierarchy of DefaultWorkspaceNegotiator

1 file declares its use of DefaultWorkspaceNegotiator
DefaultWorkspaceNegotiatorTest.php in tests/src/Unit/DefaultWorkspaceNegotiatorTest.php
1 string reference to 'DefaultWorkspaceNegotiator'
multiversion.services.yml in ./multiversion.services.yml
multiversion.services.yml
1 service uses DefaultWorkspaceNegotiator
workspace.negotiator.default in ./multiversion.services.yml
Drupal\multiversion\Workspace\DefaultWorkspaceNegotiator

File

src/Workspace/DefaultWorkspaceNegotiator.php, line 7

Namespace

Drupal\multiversion\Workspace
View source
class DefaultWorkspaceNegotiator extends WorkspaceNegotiatorBase {

  /**
   * {@inheritdoc}
   */
  public function applies(Request $request) {
    return TRUE;
  }

  /**
   * {@inheritdoc}
   */
  public function getWorkspaceId(Request $request) {
    return $this->container
      ->getParameter('workspace.default');
  }

}

Members