public function SqlContentEntityStorageSchemaConverter::__construct in Drupal 8
SqlContentEntityStorageSchemaConverter constructor.
Parameters
string $entity_type_id: The ID of the entity type.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface $entity_definition_update_manager: Entity definition update manager service.
File
- core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorageSchemaConverter.php, line 52
Class
- SqlContentEntityStorageSchemaConverter
- Defines a schema converter for entity types with existing data.
Namespace
Drupal\Core\Entity\SqlCode
public function __construct($entity_type_id, EntityTypeManagerInterface $entity_type_manager, EntityDefinitionUpdateManagerInterface $entity_definition_update_manager) {
@trigger_error('\\Drupal\\Core\\Entity\\Sql\\SqlContentEntityStorageSchemaConverter is deprecated in Drupal 8.7.0, will be removed before Drupal 9.0.0. Use \\Drupal\\Core\\Entity\\EntityDefinitionUpdateManagerInterface::updateFieldableEntityType() instead. See https://www.drupal.org/node/3029997.', E_USER_DEPRECATED);
$this->entityTypeId = $entity_type_id;
$this->entityTypeManager = $entity_type_manager;
$this->entityDefinitionUpdateManager = $entity_definition_update_manager;
}