public function DefaultWorkspaceNegotiator::__construct in Workspace 8.2
Constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
File
- src/
Negotiator/ DefaultWorkspaceNegotiator.php, line 35
Class
- DefaultWorkspaceNegotiator
- Defines the default workspace negotiator.
Namespace
Drupal\workspace\NegotiatorCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->workspaceStorage = $entity_type_manager
->getStorage('workspace');
}