You are here

public function DynamicallyFieldableEntityStorageInterface::purgeFieldData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php \Drupal\Core\Entity\DynamicallyFieldableEntityStorageInterface::purgeFieldData()

Purges a batch of field data.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The deleted field whose data is being purged.

$batch_size: The maximum number of field data records to purge before returning, relating to the count of field data records returned by \Drupal\Core\Entity\FieldableEntityStorageInterface::countFieldData().

Return value

int The number of field data records that have been purged.

1 method overrides DynamicallyFieldableEntityStorageInterface::purgeFieldData()
ContentEntityStorageBase::purgeFieldData in core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php
Purges a batch of field data.

File

core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php, line 47
Contains \Drupal\Core\Entity\DynamicallyFieldableEntityStorageInterface.

Class

DynamicallyFieldableEntityStorageInterface
A storage that supports entity types with dynamic field definitions.

Namespace

Drupal\Core\Entity

Code

public function purgeFieldData(FieldDefinitionInterface $field_definition, $batch_size);