function FieldHooks::cron

Implements hook_cron().

File

core/modules/field/src/Hook/FieldHooks.php, line 163

Class

FieldHooks
Hook implementations for field.

Namespace

Drupal\field\Hook

Code

public function cron() {
    // Do a pass of purging on deleted Field API data, if any exists.
    $limit = \Drupal::config('field.settings')->get('purge_batch_size');
    field_purge_batch($limit);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.