1 | <?php |
||
18 | class Url extends AbstractType |
||
19 | { |
||
20 | /** |
||
21 | * The base template path to the field type templates |
||
22 | */ |
||
23 | const BASE_TEMPLATE_PATH = AbstractType::BASE_TEMPLATE_PATH . '/url'; |
||
24 | |||
25 | /** |
||
26 | * The settings template path |
||
27 | */ |
||
28 | const SETTINGS_TEMPLATE_PATH = self::BASE_TEMPLATE_PATH . '/settings'; |
||
29 | |||
30 | /** |
||
31 | * The input template path |
||
32 | */ |
||
33 | const INPUT_TEMPLATE_PATH = self::BASE_TEMPLATE_PATH . '/input'; |
||
34 | |||
35 | /** |
||
36 | * @var bool |
||
37 | */ |
||
38 | public $useUrlAsDefaultText = true; |
||
39 | |||
40 | /** |
||
41 | * @var bool |
||
42 | */ |
||
43 | public $allowRelativeUrl = false; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | public $url; |
||
49 | |||
50 | /** |
||
51 | * @var string|null The input’s placeholder text |
||
52 | */ |
||
53 | public $placeholder; |
||
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | public static function displayName(): string |
||
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | public function getText() |
||
74 | |||
75 | /** |
||
76 | * @return string |
||
77 | */ |
||
78 | public function getUrl(): string |
||
82 | |||
83 | /** |
||
84 | * @inheritdoc |
||
85 | */ |
||
86 | public function settings(): array |
||
97 | |||
98 | /** |
||
99 | * @inheritdoc |
||
100 | */ |
||
101 | public function attributes() |
||
110 | |||
111 | /** |
||
112 | * @inheritdoc |
||
113 | */ |
||
114 | public function rules() |
||
149 | } |
||
150 |