protected function SqlContentEntityStorageSchema::deletedFieldsRepository in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::deletedFieldsRepository()
- 9 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::deletedFieldsRepository()
Gets the deleted fields repository.
@todo Inject this dependency in the constructor once this class can be instantiated as a regular entity handler: https://www.drupal.org/node/2332857.
Return value
\Drupal\Core\Field\DeletedFieldsRepositoryInterface The deleted fields repository.
1 call to SqlContentEntityStorageSchema::deletedFieldsRepository()
- SqlContentEntityStorageSchema::onFieldStorageDefinitionDelete in core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorageSchema.php - Reacts to the deletion of a field storage definition.
File
- core/
lib/ Drupal/ Core/ Entity/ Sql/ SqlContentEntityStorageSchema.php, line 156
Class
- SqlContentEntityStorageSchema
- Defines a schema handler that supports revisionable, translatable entities.
Namespace
Drupal\Core\Entity\SqlCode
protected function deletedFieldsRepository() {
if (!isset($this->deletedFieldsRepository)) {
$this->deletedFieldsRepository = \Drupal::service('entity_field.deleted_fields_repository');
}
return $this->deletedFieldsRepository;
}