function CommentTypeForm::create

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

Overrides FormBase::create

File

core/modules/comment/src/CommentTypeForm.php, line 45

Class

CommentTypeForm
Base form handler for comment type edit forms.

Namespace

Drupal\comment

Code

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

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