You are here

public function FieldableEdgeEntityStorageBase::purgeFieldData in Apigee Edge 8

Purges a batch of field data.

Parameters

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

int $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.

Overrides FieldableEntityStorageInterface::purgeFieldData

File

src/Entity/Storage/FieldableEdgeEntityStorageBase.php, line 139

Class

FieldableEdgeEntityStorageBase
Base class for fieldable Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Storage

Code

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

  // Should we $this->countFieldData($field_definition); instead?
  return 0;
}