W3cubDocs

/Drupal 8

function field_cron

field_cron()

Implements hook_cron().

Related topics

Field API
Attaches custom data fields to Drupal entities.

File

core/modules/field/field.module, line 163
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);
}

© 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!modules!field!field.module/function/field_cron/8.1.x