function CommentController::create
Same name in other branches
- 8.9.x core/modules/comment/src/Controller/CommentController.php \Drupal\comment\Controller\CommentController::create()
Overrides ControllerBase::create
File
-
core/
modules/ comment/ src/ Controller/ CommentController.php, line 84
Class
- CommentController
- Controller for the comment entity.
Namespace
Drupal\comment\ControllerCode
public static function create(ContainerInterface $container) {
return new static($container->get('http_kernel'), $container->get('comment.manager'), $container->get('entity_type.manager'), $container->get('entity_field.manager'), $container->get('entity.repository'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.