setFilters / addFilters on AdminUrlGenerator

Open
#4,127 3 comments 4 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@Amoifr is already working on this.

Since Nov 2, 2026.

  • #7896 by @Amoifr — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php, symfony
Domain
backend

Research direction

Start at AdminUrlGenerator and trace how set('filters', ...) is converted into the URL. Decide whether setFilter or addFilter fits the existing API, then add coverage for setting a filter value and comparison operator; done means callers can express the shown use case without manually building the filters array.

Written by the indexing model from the issue text.

Description

feature priority: important

Setting filter values when building a url with the admin generator is clunky

->set('filters', ['seller' => ['value' => $entity->getId(), 'comparison' => '=']])

A function specifically designed to help set the value and operator would be nice, e.g.:

->setFilter('seller', $entity->getId(), '=')

Maybe addFilter would be a better name as multiple filters can be set

Dominant language
PHP
Stars
4.3k
Forks
1.1k
Avg merge
2d 9h
Merged PRs (30d)
52

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EasyCorp/EasyAdminBundle

All issues in EasyCorp/EasyAdminBundle

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.