class DefaultWorkspaceNegotiator in Multiversion 8
Hierarchy
- class \Drupal\multiversion\Workspace\WorkspaceNegotiatorBase implements \Symfony\Component\DependencyInjection\ContainerAwareInterface, WorkspaceNegotiatorInterface uses \Symfony\Component\DependencyInjection\ContainerAwareTrait
- class \Drupal\multiversion\Workspace\DefaultWorkspaceNegotiator
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'
1 service uses DefaultWorkspaceNegotiator
File
- src/
Workspace/ DefaultWorkspaceNegotiator.php, line 7
Namespace
Drupal\multiversion\WorkspaceView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DefaultWorkspaceNegotiator:: |
public | function |
Overrides WorkspaceNegotiatorInterface:: |
|
DefaultWorkspaceNegotiator:: |
public | function |
Overrides WorkspaceNegotiatorInterface:: |
|
WorkspaceNegotiatorBase:: |
protected | property | ||
WorkspaceNegotiatorBase:: |
protected | property | ||
WorkspaceNegotiatorBase:: |
public | function |
Overrides WorkspaceNegotiatorInterface:: |
2 |
WorkspaceNegotiatorBase:: |
public | function |
Overrides WorkspaceNegotiatorInterface:: |
|
WorkspaceNegotiatorBase:: |
public | function |
Overrides WorkspaceNegotiatorInterface:: |