function domain_uninstall in Domain Access 8
Same name and namespace in other branches
- 5 domain.install \domain_uninstall()
- 6.2 domain.install \domain_uninstall()
- 7.3 domain.install \domain_uninstall()
- 7.2 domain.install \domain_uninstall()
Implements hook_uninstall().
Core does not properly purge field provided by configuration entities. There are a few related issues and @todo notices in core to this effect. Instead, we handle field purges ourselves.
File
- domain/
domain.install, line 26 - Install, update and uninstall functions for the Domain Access module.
Code
function domain_uninstall() {
// 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);
\Drupal::entityTypeManager()
->clearCachedDefinitions();
}