applyFilterToList() public method

Applies the conditions from a filter to the listbuilder.
public applyFilterToList ( Sulu\Component\Rest\ListBuilder\ListBuilderInterface $listBuilder ) : mixed
$listBuilder Sulu\Component\Rest\ListBuilder\ListBuilderInterface
return mixed
Example #1
0
 /**
  * Will be called when a listbuilder.create event is emitted.
  *
  * @param ListBuilderCreateEvent $event
  */
 public function onListBuilderCreate(ListBuilderCreateEvent $event)
 {
     $this->filterListBuilder->applyFilterToList($event->getListBuilder());
 }