function CommentTypeDeleteForm::create

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

Overrides FormBase::create

File

core/modules/comment/src/Form/CommentTypeDeleteForm.php, line 56

Class

CommentTypeDeleteForm
Provides a confirmation form for deleting a comment type entity.

Namespace

Drupal\comment\Form

Code

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

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