Sulu\Bundle\ResourceBundle\Resource\FilterListBuilderInterface::applyFilterToList PHP Method

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
    public function applyFilterToList(ListBuilderInterface $listBuilder);

Usage Example

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());
 }
FilterListBuilderInterface