function WorkspaceSwitcherForm::create

Same name in other branches
  1. 9 core/modules/workspaces/src/Form/WorkspaceSwitcherForm.php \Drupal\workspaces\Form\WorkspaceSwitcherForm::create()
  2. 8.9.x core/modules/workspaces/src/Form/WorkspaceSwitcherForm.php \Drupal\workspaces\Form\WorkspaceSwitcherForm::create()
  3. 11.x core/modules/workspaces/src/Form/WorkspaceSwitcherForm.php \Drupal\workspaces\Form\WorkspaceSwitcherForm::create()

Overrides FormBase::create

File

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

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.