public SqlContentEntityStorageSchema::__construct(EntityManagerInterface $entity_manager, ContentEntityTypeInterface $entity_type, SqlContentEntityStorage $storage, Connection $database)
Constructs a SqlContentEntityStorageSchema.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Entity\ContentEntityTypeInterface $entity_type: The entity type.
\Drupal\Core\Entity\Sql\SqlContentEntityStorage $storage: The storage of the entity type. This must be an SQL-based storage.
\Drupal\Core\Database\Connection $database: The database connection to be used.
File
- core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 99
Class
- SqlContentEntityStorageSchema
- Defines a schema handler that supports revisionable, translatable entities.
Namespace
Drupal\Core\Entity\Sql
Code
public function __construct(EntityManagerInterface $entity_manager, ContentEntityTypeInterface $entity_type, SqlContentEntityStorage $storage, Connection $database) { $this->entityManager = $entity_manager; $this->entityType = $entity_type; $this->fieldStorageDefinitions = $entity_manager->getFieldStorageDefinitions($entity_type->id()); $this->storage = $storage; $this->database = $database; }
Please login to continue.