function CommentStorage::createInstance
Same name in other branches
- 8.9.x core/modules/comment/src/CommentStorage.php \Drupal\comment\CommentStorage::createInstance()
- 10 core/modules/comment/src/CommentStorage.php \Drupal\comment\CommentStorage::createInstance()
- 11.x core/modules/comment/src/CommentStorage.php \Drupal\comment\CommentStorage::createInstance()
Overrides SqlContentEntityStorage::createInstance
File
-
core/
modules/ comment/ src/ CommentStorage.php, line 65
Class
- CommentStorage
- Defines the storage handler class for comments.
Namespace
Drupal\commentCode
public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_info) {
return new static($entity_info, $container->get('database'), $container->get('entity_field.manager'), $container->get('current_user'), $container->get('cache.entity'), $container->get('language_manager'), $container->get('entity.memory_cache'), $container->get('entity_type.bundle.info'), $container->get('entity_type.manager'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.