From cb2b9498fb33bd57a19ba6a7ceed6d3fbc976d70 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Fri, 28 Sep 2018 10:38:56 +0200 Subject: [PATCH] API Deprecate updateSearchContextCallback and updateSearchFormCallback --- src/Forms/GridField/GridFieldFilterHeader.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Forms/GridField/GridFieldFilterHeader.php b/src/Forms/GridField/GridFieldFilterHeader.php index 733bd2289..fd3dd8ea9 100755 --- a/src/Forms/GridField/GridFieldFilterHeader.php +++ b/src/Forms/GridField/GridFieldFilterHeader.php @@ -38,7 +38,7 @@ class GridFieldFilterHeader implements GridField_URLHandler, GridField_HTMLProvi * Indicates that this component should revert to displaying it's legacy * table header style rather than the react driven search box * - * @deprecated 5.0 + * @deprecated 4.3.0:5.0.0 Will be removed in 5.0 * @var bool */ public $useLegacyFilterHeader = false; @@ -55,13 +55,15 @@ class GridFieldFilterHeader implements GridField_URLHandler, GridField_HTMLProvi /** * @var callable + * @deprecated 4.3.0:5.0.0 Will be removed in 5.0 */ - protected $updateSearchContext = null; + protected $updateSearchContextCallback = null; /** * @var callable + * @deprecated 4.3.0:5.0.0 Will be removed in 5.0 */ - protected $updateSearchForm = null; + protected $updateSearchFormCallback = null; /** * @inheritDoc @@ -75,6 +77,7 @@ class GridFieldFilterHeader implements GridField_URLHandler, GridField_HTMLProvi /** * @param bool $useLegacy + * @param callable|null $updateSearchContext This will be removed in 5.0 * @param callable|null $updateSearchForm This will be removed in 5.0 */ public function __construct(