function WorkspacePublishForm::create
Same name in this branch
- 11.x core/modules/workspaces/src/Form/WorkspacePublishForm.php \Drupal\workspaces\Form\WorkspacePublishForm::create()
Same name and namespace in other branches
- 10 core/modules/workspaces/src/Form/WorkspacePublishForm.php \Drupal\workspaces\Form\WorkspacePublishForm::create()
- 9 core/modules/workspaces/src/Form/WorkspacePublishForm.php \Drupal\workspaces\Form\WorkspacePublishForm::create()
- main core/modules/workspaces_ui/src/Form/WorkspacePublishForm.php \Drupal\workspaces_ui\Form\WorkspacePublishForm::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/ WorkspacePublishForm.php, line 60
Class
- WorkspacePublishForm
- Provides the workspace publishing form.
Namespace
Drupal\workspaces_ui\FormCode
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.