Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Js.php
Go to the documentation of this file.
1 <?php
7 
14 {
21  protected $_template = 'Magento_Eav::attribute/edit/js.phtml';
22 
26  private $inputtype;
27 
31  public function __construct(
32  \Magento\Backend\Block\Template\Context $context,
33  \Magento\Eav\Model\Adminhtml\System\Config\Source\Inputtype $inputtype,
34  array $data = []
35  ) {
36  $this->inputtype = $inputtype;
37  parent::__construct($context, $data);
38  }
39 
44  public function getComaptibleInputTypes()
45  {
46  return $this->getCompatibleInputTypes();
47  }
48 
54  public function getCompatibleInputTypes()
55  {
56  return $this->inputtype->getVolatileInputTypes();
57  }
58 
64  public function getInputTypeHints()
65  {
66  return $this->inputtype->getInputTypeHints();
67  }
68 }
__construct(\Magento\Backend\Block\Template\Context $context, \Magento\Eav\Model\Adminhtml\System\Config\Source\Inputtype $inputtype, array $data=[])
Definition: Js.php:31