X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Foptions%2Foptions.module;fp=web%2Fcore%2Fmodules%2Foptions%2Foptions.module;h=c4ebf84f8371f1423bf96067771ec6bd3323a329;hp=7cf36355293dd735fb1ef33dd9636779afef0136;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/options/options.module b/web/core/modules/options/options.module index 7cf363552..c4ebf84f8 100644 --- a/web/core/modules/options/options.module +++ b/web/core/modules/options/options.module @@ -122,8 +122,7 @@ function options_field_storage_config_update_forbid(FieldStorageConfigInterface */ function _options_values_in_use($entity_type, $field_name, $values) { if ($values) { - $factory = \Drupal::service('entity.query'); - $result = $factory->get($entity_type) + $result = \Drupal::entityQuery($entity_type) ->condition($field_name . '.value', $values, 'IN') ->count() ->accessCheck(FALSE)