1 | <?php |
||
27 | class Link extends Field |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * Type objects that have been configured via the admin |
||
32 | * |
||
33 | * @var TypeInterface[] |
||
34 | */ |
||
35 | protected $types = []; |
||
36 | |||
37 | /** |
||
38 | * Raw configurations that have been configured via the admin |
||
39 | * |
||
40 | * @var array |
||
41 | */ |
||
42 | protected $typeConfigs = []; |
||
43 | |||
44 | /** |
||
45 | * @return TypeInterface[] |
||
46 | */ |
||
47 | public function getTypes() |
||
54 | |||
55 | /** |
||
56 | * @param array $types |
||
57 | * @return $this |
||
58 | */ |
||
59 | public function setTypes(array $types) |
||
67 | |||
68 | /** |
||
69 | * @param string $identifier |
||
70 | * @return TypeInterface |
||
71 | */ |
||
72 | public function getType(string $identifier) |
||
86 | |||
87 | /** |
||
88 | * @inheritdoc |
||
89 | */ |
||
90 | public static function displayName(): string |
||
94 | |||
95 | /** |
||
96 | * @inheritdoc |
||
97 | */ |
||
98 | public function getContentColumnType(): string |
||
102 | |||
103 | /** |
||
104 | * @inheritdoc |
||
105 | */ |
||
106 | public function getSettingsHtml() |
||
122 | |||
123 | /** |
||
124 | * @inheritdoc |
||
125 | */ |
||
126 | public function getInputHtml($value, ElementInterface $element = null): string |
||
137 | |||
138 | /** |
||
139 | * @inheritdoc |
||
140 | */ |
||
141 | public function serializeValue($value, ElementInterface $element = null) |
||
158 | |||
159 | /** |
||
160 | * @inheritdoc |
||
161 | */ |
||
162 | public function getSettings(): array |
||
176 | |||
177 | /** |
||
178 | * @inheritdoc |
||
179 | */ |
||
180 | public function getElementValidationRules(): array |
||
188 | |||
189 | /** |
||
190 | * @param mixed $value |
||
191 | * @param ElementInterface|null $element |
||
192 | * @return array|mixed|null|object |
||
193 | */ |
||
194 | public function normalizeValue($value, ElementInterface $element = null) |
||
241 | |||
242 | /** |
||
243 | * Create objects from all (remaining) configurations |
||
244 | * |
||
245 | * @return void |
||
246 | */ |
||
247 | private function resolveConfigs() |
||
254 | |||
255 | /** |
||
256 | * @param string $identifier |
||
257 | * @param array $config |
||
258 | * @return null|object |
||
259 | */ |
||
260 | private function resolveConfig(string $identifier, array $config) |
||
274 | |||
275 | /** |
||
276 | * @param string $identifier |
||
277 | * @return null|object |
||
278 | */ |
||
279 | private function createFromConfig(string $identifier) |
||
287 | } |
||
288 |