1 | <?php |
||
12 | class CreateEanAttributeButton extends Field |
||
13 | { |
||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | public function __construct(\Magento\Backend\Block\Template\Context $context, array $data = []) |
||
21 | |||
22 | /** |
||
23 | * Gets the ajax url for the button. |
||
24 | * |
||
25 | * @return string |
||
26 | */ |
||
27 | public function getAjaxUrl() |
||
31 | |||
32 | /** |
||
33 | * Generate button html |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getButtonHtml() |
||
48 | |||
49 | /** |
||
50 | * Render button |
||
51 | * |
||
52 | * @param \Magento\Framework\Data\Form\Element\AbstractElement $element |
||
53 | * @return string |
||
54 | */ |
||
55 | public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element) |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | protected function _construct() |
||
71 | |||
72 | /** |
||
73 | * Return element html |
||
74 | * |
||
75 | * @param \Magento\Framework\Data\Form\Element\AbstractElement $element |
||
76 | * @return string |
||
77 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
78 | */ |
||
79 | protected function _getElementHtml(\Magento\Framework\Data\Form\Element\AbstractElement $element) |
||
83 | } |
||
84 |