function ContentEntityStorageBase::createInstance
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::createInstance()
- 10 core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::createInstance()
- 11.x core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php \Drupal\Core\Entity\ContentEntityStorageBase::createInstance()
Overrides EntityHandlerInterface::createInstance
1 method overrides ContentEntityStorageBase::createInstance()
- SqlContentEntityStorage::createInstance in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorage.php - Instantiates a new instance of this entity handler.
File
-
core/
lib/ Drupal/ Core/ Entity/ ContentEntityStorageBase.php, line 90
Class
- ContentEntityStorageBase
- Base class for content entity storage handlers.
Namespace
Drupal\Core\EntityCode
public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
return new static($entity_type, $container->get('entity_field.manager'), $container->get('cache.entity'), $container->get('entity.memory_cache'), $container->get('entity_type.bundle.info'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.