Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

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',
        ])
)