14 class Edit extends \Magento\Backend\Block\Widget\Form\Container
34 parent::__construct($context,
$data);
42 $this->_objectId =
'id';
43 $this->_blockGroup =
'Magento_Search';
44 $this->_controller =
'adminhtml_term';
48 $this->buttonList->update(
'save',
'label',
__(
'Save Search'));
49 $this->buttonList->update(
'delete',
'label',
__(
'Delete Search'));
57 if ($this->coreRegistry->registry(
'current_catalog_search')->getId()) {
58 $queryText = $this->
escapeHtml($this->coreRegistry->registry(
'current_catalog_search')->getQueryText());
59 return __(
"Edit Search '%1'", $queryText);
61 return __(
'New Search');
escapeHtml($data, $allowedTags=null)
__construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Framework\Registry $registry, array $data=[])