How add query to EntityListBuilder I want to add a query to filter my entity list table.

class CommandesLignesEntityListBuilder extends EntityListBuilder {

  use LinkGeneratorTrait;

  /**
   * {@inheritdoc}
   */
  public function buildHeader() {
    $header['id'] = $this-&gt;t('ID');
    $header['produit'] = $this-&gt;t('Produit');
    $header['quantite'] = $this-&gt;t('Quantité');
    $header['prixHT'] = $this-&gt;t('Prix HT');
    $header['TVA'] = $this-&gt;t('TVA');
    return $header + parent::buildHeader();
  }

  /**
   * {@inheritdoc}
   */
  public function buildRow(EntityInterface $entity) {

    /* @var $entity \Drupal\boutique\Entity\CommandesLignesEntity */
    $row['id'] = $entity-&gt;id();
    $row['produit'] =$entity-&gt;getProduit();
    $row['quantite'] =$entity-&gt;getQTE();
    $row['prixHT'] =$entity-&gt;getPrixHT();
    $row['TVA'] =$entity-&gt;getTVA();

    return $row + parent::buildRow($entity);
  }

}


This show me all lines. How can I filter this with a query? For example, how can I get only lines with price greater or equal to 100?

i would like a permanent query for this EntityListBuilder sub-class.
Although not exactly a duplicate of How to make EntityListBuilder sortable? it is essentially the same answer as Berdir wrote,


  You'd have to implement the query logic yourself.


For instance, BlockListBuilder overrides getEntityIds to add a condition on the theme key.

However as Berdir also notes,


  For content entities, I would strongly recommend to rely on the views
  integration instead. List builders are limited in functionality and
  mostly useful for config entities only.