function CommentTypeListBuilder::createInstance
Same name in other branches
- 10 core/modules/comment/src/CommentTypeListBuilder.php \Drupal\comment\CommentTypeListBuilder::createInstance()
Overrides EntityListBuilder::createInstance
File
-
core/
modules/ comment/ src/ CommentTypeListBuilder.php, line 36
Class
- CommentTypeListBuilder
- Defines a class to build a listing of comment type entities.
Namespace
Drupal\commentCode
public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
return new static($entity_type, $container->get('entity_type.manager')
->getStorage($entity_type->id()), $container->get('entity_type.manager'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.