From 5bad5947d700c36ec870b3db6af1a95574896674 Mon Sep 17 00:00:00 2001 From: Kristiaan Van den Eynde Date: Thu, 25 Jun 2020 10:56:01 +0200 Subject: [PATCH] interdiff --- src/QueryAccess/QueryAccessEvent.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/QueryAccess/QueryAccessEvent.php b/src/QueryAccess/QueryAccessEvent.php index 1632b07..792922f 100644 --- a/src/QueryAccess/QueryAccessEvent.php +++ b/src/QueryAccess/QueryAccessEvent.php @@ -56,16 +56,11 @@ class QueryAccessEvent extends Event { * @param string $entity_type_id * The ID of entity type the query is for. */ - public function __construct(ConditionGroup $conditions, $operation, AccountInterface $account, $entity_type_id = NULL) { + public function __construct(ConditionGroup $conditions, $operation, AccountInterface $account, $entity_type_id) { $this->conditions = $conditions; $this->operation = $operation; $this->account = $account; - if (!isset($entity_type_id)) { - @trigger_error('The $entity_type_id argument must be passed to QueryAccessEvent::__construct(), it is required before Entity API 8.1.1. See https://www.drupal.org/node/3134363.', E_USER_DEPRECATED); - } - else { - $this->entityTypeId = $entity_type_id; - } + $this->entityTypeId = $entity_type_id; } /** -- 2.17.1