Warning: You are browsing the documentation for PrestaShop 8, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 9. Read the updated version of this page

Learn how to update to the latest version.

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