src/Forms/GridField/GridFieldFilterHeader.php
public function handleAction(GridField $gridField, $actionName, $arguments, $data)
    {
        if (!$this->checkDataType($gridField->getList())) {
            return;
        }

        $state = $gridField->State->GridFieldFilterHeader;
        $state->Columns = null;
        if ($actionName === 'filter') {
            if (isset($data['filter'][$gridField->getName()])) {
                foreach ($data['filter'][$gridField->getName()] as $key => $filter) {
                    $state->Columns->$key = $filter;
                }
            }
        }
    }
public function handleAction(GridField $gridField, $actionName, $arguments, $data)
    {
        if (!$this->checkDataType($gridField->getList())) {
            return;
        }

        $state = $gridField->State->GridFieldFilterHeader;
        $state->Columns = null;
        if ($actionName === 'filter') {
            if (isset($data['filter'][$gridField->getName()])) {
                foreach ($data['filter'][$gridField->getName()] as $key => $filter) {
                    $state->Columns->$key = $filter;
                }
            }
        }
    }
public function handleAction ( GridField $ gridField , $ actionName , $ arguments , $ data ) { if ( ! $ this -> checkDataType ( $ gridField -> getList ( ) ) ) { return ; } $ state = $ gridField -> State -> GridFieldFilterHeader ; $ state -> Columns = null ; if ( $ actionName === 'filter' ) { if ( isset ( $ data [ 'filter' ] [ $ gridField -> getName ( ) ] ) ) { foreach ( $ data [ 'filter' ] [ $ gridField -> getName ( ) ] as $ key => $ filter ) { $ state -> Columns -> $ key = $ filter ; } } } }
If the GridField has a filterable datalist, return an array of actions

@param GridField $gridField
@return void
If the GridField has a filterable datalist return an array of actions