function WorkspaceActivateForm::create

Same name in this branch
  1. 11.x core/modules/workspaces/src/Form/WorkspaceActivateForm.php \Drupal\workspaces\Form\WorkspaceActivateForm::create()
Same name and namespace in other branches
  1. 10 core/modules/workspaces/src/Form/WorkspaceActivateForm.php \Drupal\workspaces\Form\WorkspaceActivateForm::create()
  2. 9 core/modules/workspaces/src/Form/WorkspaceActivateForm.php \Drupal\workspaces\Form\WorkspaceActivateForm::create()
  3. 8.9.x core/modules/workspaces/src/Form/WorkspaceActivateForm.php \Drupal\workspaces\Form\WorkspaceActivateForm::create()
  4. main core/modules/workspaces_ui/src/Form/WorkspaceActivateForm.php \Drupal\workspaces_ui\Form\WorkspaceActivateForm::create()

Instantiates a new instance of the implementing class using autowiring.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container this instance should use.

Return value

static

Overrides AutowireTrait::create

File

core/modules/workspaces_ui/src/Form/WorkspaceActivateForm.php, line 57

Class

WorkspaceActivateForm
Handle activation of a workspace on administrative pages.

Namespace

Drupal\workspaces_ui\Form

Code

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

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