You are here

function field_cron in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field/field.module \field_cron()
  2. 7 modules/field/field.module \field_cron()

Implements hook_cron().

Related topics

File

core/modules/field/field.module, line 166
Attach custom data fields to Drupal entities.

Code

function field_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);
}