Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
GlobalSearch.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Backend\Block;
7 
13 {
17  protected $_template = 'Magento_Backend::system/search.phtml';
18 
23  public function getWidgetInitOptions()
24  {
25  return [
26  'suggest' => [
27  'dropdownWrapper' => '<div class="autocomplete-results" ></div >',
28  'template' => '[data-template=search-suggest]',
29  'termAjaxArgument' => 'query',
30  'source' => $this->getUrl('adminhtml/index/globalSearch'),
31  'filterProperty' => 'name',
32  'preventClickPropagation' => false,
33  'minLength' => 2,
34  'submitInputOnEnter' => false,
35  ]
36  ];
37  }
38 }