Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Search.php
Go to the documentation of this file.
1 <?php
7 
15 class Search extends \Magento\Sales\Block\Adminhtml\Order\Create\AbstractCreate
16 {
22  protected function _construct()
23  {
24  parent::_construct();
25  $this->setId('sales_order_create_search');
26  }
27 
33  public function getHeaderText()
34  {
35  return __('Please select products');
36  }
37 
43  public function getButtonsHtml()
44  {
45  $addButtonData = [
46  'label' => __('Add Selected Product(s) to Order'),
47  'onclick' => 'order.productGridAddSelected()',
48  'class' => 'action-add action-secondary',
49  ];
50  return $this->getLayout()->createBlock(
51  \Magento\Backend\Block\Widget\Button::class
52  )->setData(
53  $addButtonData
54  )->toHtml();
55  }
56 
62  public function getHeaderCssClass()
63  {
64  return 'head-catalog-product';
65  }
66 }
__()
Definition: __.php:13