Skip to content
Snippets Groups Projects

Issue #3357838: Relying on entity queries to check access by default is deprecated in drupal:9.2.0 and an error will be thrown from drupal:10.0.0

Merged Issue #3357838: Relying on entity queries to check access by default is deprecated in drupal:9.2.0 and an error will be thrown from drupal:10.0.0
Merged Ahmad Nawaz requested to merge issue/address-3357838:3357838-relying-on-entity into 8.x-1.x
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -29,6 +29,7 @@ function address_post_update_convert_names_subdivisions(&$sandbox = NULL) {
$field_name = $field[1];
$storage = \Drupal::entityTypeManager()->getStorage($entity_type_id);
$query = $storage->getQuery()->exists($field_name . '.country_code');
$query->accessCheck(FALSE);
$entities = $storage->loadMultiple($query->execute());
foreach ($entities as $entity) {
_address_update_entity($entity, $field_name);
Loading