Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractElement.php
Go to the documentation of this file.
1 <?php
7 
9 
16 abstract class AbstractElement extends AbstractComponent implements ElementInterface
17 {
21  public function getHtmlId()
22  {
23  return '';
24  }
25 
29  public function getValue()
30  {
31  return $this->getData('value');
32  }
33 
37  public function getFormInputName()
38  {
39  return $this->getData('input_name');
40  }
41 
45  public function isReadonly()
46  {
47  return (bool) $this->getData('readonly');
48  }
49 
53  public function getCssClasses()
54  {
55  return $this->getData('css_classes');
56  }
57 }