W3cubDocs

/Drupal 8

public function DynamicallyFieldableEntityStorageInterface::purgeFieldData

public DynamicallyFieldableEntityStorageInterface::purgeFieldData(FieldDefinitionInterface $field_definition, $batch_size)

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.

File

core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php, line 42

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);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!DynamicallyFieldableEntityStorageInterface.php/function/DynamicallyFieldableEntityStorageInterface::purgeFieldData/8.1.x