Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Note.php
Go to the documentation of this file.
1 <?php
13 
15 
16 class Note 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('note');
32  }
33 
37  public function getElementHtml()
38  {
39  $html = $this->getBeforeElementHtml()
40  . '<div id="'
41  . $this->getHtmlId()
42  . '" class="control-value admin__field-value">'
43  . $this->getText()
44  . '</div>'
45  . $this->getAfterElementHtml();
46  return $html;
47  }
48 }
__construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data=[])
Definition: Note.php:24