Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Submit.php
Go to the documentation of this file.
1 <?php
13 
15 
16 class Submit extends AbstractElement
17 {
24  public function __construct(
25  Factory $factoryElement,
26  CollectionFactory $factoryCollection,
27  Escaper $escaper,
28  $data = []
29  ) {
30  parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
31  $this->setExtType('submit');
32  $this->setType('submit');
33  }
34 
38  public function getHtml()
39  {
40  $this->addClass('submit');
41  return parent::getHtml();
42  }
43 }
__construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data=[])
Definition: Submit.php:24