-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Expand file tree
/
Copy pathJs.php
More file actions
65 lines (59 loc) · 1.38 KB
/
Js.php
File metadata and controls
65 lines (59 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Copyright 2013 Adobe
* All Rights Reserved.
*/
namespace Magento\Eav\Block\Adminhtml\Attribute\Edit;
/**
* Eav Attribute Block with additional js scripts in template
*/
class Js extends \Magento\Backend\Block\Template
{
/**
* @var string
*/
protected $_template = 'Magento_Eav::attribute/edit/js.phtml';
/**
* @var \Magento\Eav\Model\Adminhtml\System\Config\Source\Inputtype
*/
private $inputtype;
/**
* @inheritDoc
*/
public function __construct(
\Magento\Backend\Block\Template\Context $context,
\Magento\Eav\Model\Adminhtml\System\Config\Source\Inputtype $inputtype,
array $data = []
) {
$this->inputtype = $inputtype;
parent::__construct($context, $data);
}
/**
* Return compatible input types
*
* @deprecated 102.0.0 Misspelled method
* @see getCompatibleInputTypes
*/
public function getComaptibleInputTypes()
{
return $this->getCompatibleInputTypes();
}
/**
* Get compatible input types.
*
* @return array
*/
public function getCompatibleInputTypes()
{
return $this->inputtype->getVolatileInputTypes();
}
/**
* Get hints on input types.
*
* @return array
*/
public function getInputTypeHints()
{
return $this->inputtype->getInputTypeHints();
}
}