Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/store/web/modules/contrib/address/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/store/web/modules/contrib/address/address.post_update.php

<?php

/**
 * @file
 * Post update functions for Address.
 */

/**
 * @addtogroup updates-8.x-1.0-rc1
 * @{
 */

/**
 * Re-save all entities with address data to update names and subdivisions.
 */
function address_post_update_convert_names_subdivisions(&$sandbox = NULL) {
  if (!isset($sandbox['fields'])) {
    $sandbox['fields'] = \Drupal::state()->get('address_8101_processed');
    $sandbox['count'] = count($sandbox['fields']);
    // No fields were updated.
    if (empty($sandbox['fields'])) {
      $sandbox['#finished'] = 1;
      return;
    }
  }

  $field = array_pop($sandbox['fields']);
  $entity_type_id = $field[0];
  $field_name = $field[1];
  $storage = \Drupal::entityTypeManager()->getStorage($entity_type_id);
  $query = $storage->getQuery()->exists($field_name . '.country_code');
  $entities = $storage->loadMultiple($query->execute());
  foreach ($entities as $entity) {
    _address_update_entity($entity, $field_name);
    $entity->save();
  }

  $sandbox['#finished'] = empty($sandbox['fields']) ? 1 : ($sandbox['count'] - count($sandbox['fields'])) / $sandbox['count'];
  return t('Updated the names and subdivisions of each address.');
}

/**
 * @} End of "addtogroup updates-8.x-1.0-rc1".
 */

/**
 * Clear caches to receive the new country list.
 */
function address_post_update_clear_country_list() {
  // An empty update will flush caches.
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net