Skip to content
Snippets Groups Projects
Verified Commit f41fc235 authored by Alexandre Dias's avatar Alexandre Dias
Browse files

ISAICP-7795: Remove old code.

parent b3c46b83
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@
use Drupal\facets\FacetInterface;
use Drupal\facets\FacetManager\DefaultFacetManager;
use Drupal\joinup_user\Entity\JoinupUserInterface;
use Drupal\paragraphs\ParagraphInterface;
use Drupal\search_api\Event\QueryPreExecuteEvent;
use Drupal\search_api\Event\SearchApiEvents;
......@@ -107,22 +106,6 @@ public function paragraphContentListingQueryAlter(QueryPreExecuteEvent $event):
$this->getConditionGroupInterfaces($query);
}
/**
* Reacts to the query alter event for user content listings.
*
* @param \Drupal\search_api\Event\QueryPreExecuteEvent $event
* The query alter event.
*/
public function userContentListingQueryAlter(QueryPreExecuteEvent $event): void {
$query = $event->getQuery();
$entity = $query->getOption('search_api_field entity');
if (!($entity instanceof JoinupUserInterface)) {
return;
}
$this->getConditionGroupInterfaces($query);
}
/**
* Add archive condition in query.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment