X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FQuery%2FQueryFactory.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FQuery%2FQueryFactory.php;h=79e80cd1f3d28d37736762273617aa4f8d10c066;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=a3c14b277f476f99fc214d56100bdf1f989d7fde;hpb=74df008bdbb3a11eeea356744f39b802369bda3c;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Entity/Query/QueryFactory.php b/web/core/lib/Drupal/Core/Entity/Query/QueryFactory.php index a3c14b277..79e80cd1f 100644 --- a/web/core/lib/Drupal/Core/Entity/Query/QueryFactory.php +++ b/web/core/lib/Drupal/Core/Entity/Query/QueryFactory.php @@ -2,6 +2,8 @@ namespace Drupal\Core\Entity\Query; +@trigger_error('The ' . __NAMESPACE__ . '\QueryFactory class is deprecated in Drupal 8.3.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\EntityStorageInterface::getQuery() or \Drupal\Core\Entity\EntityStorageInterface::getAggregateQuery() instead. See https://www.drupal.org/node/2849874.', E_USER_DEPRECATED); + use Drupal\Core\Entity\EntityManagerInterface; use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerAwareTrait; @@ -12,11 +14,12 @@ use Symfony\Component\DependencyInjection\ContainerAwareTrait; * Any implementation of this service must call getQuery()/getAggregateQuery() * of the corresponding entity storage. * - * @see \Drupal\Core\Entity\EntityStorageBase::getQuery() - * * @deprecated in Drupal 8.3.0, will be removed before Drupal 9.0.0. Use * \Drupal\Core\Entity\EntityStorageInterface::getQuery() or * \Drupal\Core\Entity\EntityStorageInterface::getAggregateQuery() instead. + * + * @see https://www.drupal.org/node/2849874 + * @see \Drupal\Core\Entity\EntityStorageBase::getQuery() */ class QueryFactory implements ContainerAwareInterface {