Edit.php 784 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\AdvancedSearch\Block\Adminhtml\Search;
  7. /**
  8. * Search queries relations grid container
  9. *
  10. * @api
  11. * @author Magento Core Team <core@magentocommerce.com>
  12. * @since 100.0.2
  13. */
  14. class Edit extends \Magento\Backend\Block\Widget\Grid\Container
  15. {
  16. /**
  17. * Enable grid container
  18. *
  19. * @return void
  20. */
  21. protected function _construct()
  22. {
  23. $this->_blockGroup = 'Magento_AdvancedSearch';
  24. $this->_controller = 'adminhtml_search';
  25. $this->_headerText = __('Related Search Terms');
  26. $this->_addButtonLabel = __('Add New Search Term');
  27. parent::_construct();
  28. $this->buttonList->remove('add');
  29. }
  30. }