code/ModelAdmin.php
public function SearchForm()
    {
        Deprecation::notice('4.3', 'Will be removed in favor of GridFieldFilterHeader  in 5.0');

        if (!$this->showSearchForm
            || (is_array($this->showSearchForm) && !in_array($this->modelClass, $this->showSearchForm))
        ) {
            return false;
        }

        $gridField = $this->getEditForm()->fields()
        ->fieldByName($this->sanitiseClassName($this->modelClass));

        $filterHeader = $gridField->getConfig()
            ->getComponentByType(GridFieldFilterHeader::class);

        $form = $filterHeader->getSearchForm($gridField);

        return $form;
    }
public function SearchForm()
    {
        Deprecation::notice('4.3', 'Will be removed in favor of GridFieldFilterHeader  in 5.0');

        if (!$this->showSearchForm
            || (is_array($this->showSearchForm) && !in_array($this->modelClass, $this->showSearchForm))
        ) {
            return false;
        }

        $gridField = $this->getEditForm()->fields()
        ->fieldByName($this->sanitiseClassName($this->modelClass));

        $filterHeader = $gridField->getConfig()
            ->getComponentByType(GridFieldFilterHeader::class);

        $form = $filterHeader->getSearchForm($gridField);

        return $form;
    }
public function SearchForm ( ) { Deprecation :: notice ( '4.3' , 'Will be removed in favor of GridFieldFilterHeader  in 5.0' ) ; if ( ! $ this -> showSearchForm || ( is_array ( $ this -> showSearchForm ) && ! in_array ( $ this -> modelClass , $ this -> showSearchForm ) ) ) { return false ; } $ gridField = $ this -> getEditForm ( ) -> fields ( ) -> fieldByName ( $ this -> sanitiseClassName ( $ this -> modelClass ) ) ; $ filterHeader = $ gridField -> getConfig ( ) -> getComponentByType ( GridFieldFilterHeader :: class ) ; $ form = $ filterHeader -> getSearchForm ( $ gridField ) ; return $ form ; }
Returns the search form

@deprecated 4.3.0
@return Form|bool
Returns the search form