src/module-elasticsuite-thesaurus/Block/Adminhtml/Thesaurus.php
<?php
/**
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Smile ElasticSuite to newer
* versions in the future.
*
* @category Smile
* @package Smile\ElasticsuiteThesaurus
* @author Romain Ruaud <romain.ruaud@smile.fr>
* @copyright 2020 Smile
* @license Open Software License ("OSL") v. 3.0
*/
namespace Smile\ElasticsuiteThesaurus\Block\Adminhtml;
use Magento\Backend\Block\Widget\Grid\Container as GridContainer;
/**
* Thesaurus Grid container
*
* @category Smile
* @package Smile\ElasticsuiteThesaurus
* @author Romain Ruaud <romain.ruaud@smile.fr>
*/
class Thesaurus extends GridContainer
{
/**
* @return string
*/
public function getCreateUrl()
{
return $this->getUrl('*/*/create');
}
/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
*
* @return void
*/
protected function _construct()
{
$this->_controller = 'thesaurus';
$this->_headerText = __('Thesaurus');
$this->_addButtonLabel = __('Add New Thesaurus');
parent::_construct();
}
}