function WorkspaceDeleteForm::create

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

Overrides ContentEntityForm::create

File

core/modules/workspaces/src/Form/WorkspaceDeleteForm.php, line 45

Class

WorkspaceDeleteForm
Provides a form for deleting a workspace.

Namespace

Drupal\workspaces\Form

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('entity.repository'), $container->get('workspaces.association'), $container->get('workspaces.repository'), $container->get('entity_type.bundle.info'), $container->get('datetime.time'));
}

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