Skip to content

Commit

Permalink
fixup! IBX-3639: As an editor I'd like use facets to filter global se…
Browse files Browse the repository at this point in the history
…arch results
  • Loading branch information
adamwojs committed Sep 6, 2023
1 parent aa2610d commit da2ed3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions src/bundle/Form/Data/SearchData.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
namespace Ibexa\Bundle\Search\Form\Data;

use Ibexa\Contracts\Core\Repository\Values\Content\Language;
use Ibexa\Contracts\Core\Repository\Values\Content\Search\AggregationResultCollection;
use Ibexa\Contracts\Core\Repository\Values\Content\Section;
use Ibexa\Contracts\Core\Repository\Values\User\User;
use Symfony\Component\Validator\Constraints as Assert;
Expand Down Expand Up @@ -55,8 +54,6 @@ class SearchData
/** @var \Ibexa\Contracts\Core\Repository\Values\User\User[] */
private $searchUsersData;

private ?AggregationResultCollection $aggregations;

public function __construct(
int $limit = 10,
int $page = 1,
Expand Down Expand Up @@ -218,16 +215,6 @@ public function isFiltered(): bool
!empty($creator) ||
null !== $subtree;
}

public function getAggregations(): ?AggregationResultCollection
{
return $this->aggregations;
}

public function setAggregations(?AggregationResultCollection $aggregations): void
{
$this->aggregations = $aggregations;
}
}

class_alias(SearchData::class, 'Ibexa\Platform\Bundle\Search\Form\Data\SearchData');
2 changes: 1 addition & 1 deletion src/bundle/Resources/config/twig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ services:

Ibexa\Bundle\Search\Twig\Extension\SearchFacetsExtension:
tags:
- name: twig.extension
- name: twig.extension

0 comments on commit da2ed3d

Please sign in to comment.