Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Hidden.php
Go to the documentation of this file.
1 <?php
13 
15 
16 class Hidden 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->setType('hidden');
32  $this->setExtType('hiddenfield');
33  }
34 
38  public function getDefaultHtml()
39  {
40  $html = $this->getData('default_html');
41  if ($html === null) {
42  $html = $this->getElementHtml();
43  }
44  return $html;
45  }
46 }
getData($key='', $index=null)
Definition: DataObject.php:119
__construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data=[])
Definition: Hidden.php:24