function WorkspaceMergeForm::create

Same name in this branch
  1. 11.x core/modules/workspaces/src/Form/WorkspaceMergeForm.php \Drupal\workspaces\Form\WorkspaceMergeForm::create()
Same name and namespace in other branches
  1. 10 core/modules/workspaces/src/Form/WorkspaceMergeForm.php \Drupal\workspaces\Form\WorkspaceMergeForm::create()
  2. 9 core/modules/workspaces/src/Form/WorkspaceMergeForm.php \Drupal\workspaces\Form\WorkspaceMergeForm::create()
  3. 8.9.x core/modules/workspaces/src/Form/WorkspaceMergeForm.php \Drupal\workspaces\Form\WorkspaceMergeForm::create()
  4. main core/modules/workspaces_ui/src/Form/WorkspaceMergeForm.php \Drupal\workspaces_ui\Form\WorkspaceMergeForm::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/WorkspaceMergeForm.php, line 66

Class

WorkspaceMergeForm
Provides a form that merges the contents for a workspace into another one.

Namespace

Drupal\workspaces_ui\Form

Code

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

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