function WorkspaceSwitcherForm::create

Overrides FormBase::create

File

core/modules/workspaces/src/Form/WorkspaceSwitcherForm.php, line 58

Class

WorkspaceSwitcherForm
Provides a form that activates a different workspace.

Namespace

Drupal\workspaces\Form

Code

public static function create(ContainerInterface $container) {
  return new static($container->get('workspaces.manager'), $container->get('entity_type.manager'), $container->get('messenger'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.