autoban-8.x-1.x-dev/modules/autoban_ban/autoban_ban.install

modules/autoban_ban/autoban_ban.install
<?php

/**
 * @file
 * Install, update and uninstall functions for the Autoban_ban module.
 */

/**
 * Implements hook_uninstall().
 */
function autoban_ban_uninstall() {
  // Delete autoban entities with ban provider.
  $storage = \Drupal::entityTypeManager()->getStorage('autoban');
  $query = $storage->getQuery();
  $query->condition('provider', 'ban');
  $entity_ids = $query->accessCheck(FALSE)->execute();
  $entities = $storage->loadMultiple($entity_ids);
  $storage->delete($entities);
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc