SearchAndResetType

FormType used in rendering of “Search and Reset” action in Grids.

Type options

Option Type Default value Description

Code example

->add(
    (new Filter('actions', SearchAndResetType::class))
        ->setAssociatedColumn('actions')
        ->setTypeOptions([
            'reset_route' => 'admin_common_reset_search_by_filter_id',
            'reset_route_params' => [
                'filterId' => self::GRID_ID,
            ],
            'redirect_route' => 'admin_addresses_index',
        ])
)