PHP Class Smile\ElasticsuiteThesaurus\Block\Adminhtml\Thesaurus\Renderer\AbstractRenderer

Author: Romain Ruaud ([email protected])
Inheritance: extends Magento\Config\Block\System\Config\Form\Field\FieldArray\AbstractFieldArray
Show file Open project: smile-sa/elasticsuite

Protected Properties

Property Type Description
$elementFactory Magento\Framework\Data\Form\Element\Factory
$textAreaColsNumber Size of the textarea to display

Public Methods

Method Description
__construct ( Magento\Backend\Block\Template\Context $context, Magento\Framework\Data\Form\Element\Factory $elementFactory, array $data = [] )
render ( Magento\Framework\Data\Form\Element\AbstractElement $element ) : string Render given element (return html of element)
renderCellTemplate ( string $columnName ) : string Render array cell for JS template

Method Details

__construct() public method

public __construct ( Magento\Backend\Block\Template\Context $context, Magento\Framework\Data\Form\Element\Factory $elementFactory, array $data = [] )
$context Magento\Backend\Block\Template\Context Application context
$elementFactory Magento\Framework\Data\Form\Element\Factory Element Factory
$data array Element Data

render() public method

Render given element (return html of element)
public render ( Magento\Framework\Data\Form\Element\AbstractElement $element ) : string
$element Magento\Framework\Data\Form\Element\AbstractElement The element
return string

renderCellTemplate() public method

Render array cell for JS template
public renderCellTemplate ( string $columnName ) : string
$columnName string The column name
return string

Property Details

$elementFactory protected property

protected Factory,Magento\Framework\Data\Form\Element $elementFactory
return Magento\Framework\Data\Form\Element\Factory

$textAreaColsNumber protected property

Size of the textarea to display
protected $textAreaColsNumber