1 | <?php |
||
26 | class Link extends Field |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * Type objects that have been configured via the admin |
||
31 | * |
||
32 | * @var TypeInterface[] |
||
33 | */ |
||
34 | protected $types = []; |
||
35 | |||
36 | /** |
||
37 | * Raw configurations that have been configured via the admin |
||
38 | * |
||
39 | * @var array |
||
40 | */ |
||
41 | protected $typeConfigs = []; |
||
42 | |||
43 | /** |
||
44 | * @return TypeInterface[] |
||
45 | */ |
||
46 | public function getTypes() |
||
53 | |||
54 | /** |
||
55 | * @param array $types |
||
56 | * @return $this |
||
57 | */ |
||
58 | public function setTypes(array $types) |
||
66 | |||
67 | /** |
||
68 | * @param string $identifier |
||
69 | * @return TypeInterface |
||
70 | */ |
||
71 | public function getType(string $identifier) |
||
85 | |||
86 | /** |
||
87 | * Create objects from all (remaining) configurations |
||
88 | * |
||
89 | * @return $this |
||
90 | */ |
||
91 | private function resolveConfigs() |
||
98 | |||
99 | /** |
||
100 | * @param string $identifier |
||
101 | * @param array $config |
||
102 | * @return null|object |
||
103 | */ |
||
104 | private function resolveConfig(string $identifier, array $config) |
||
118 | |||
119 | /** |
||
120 | * @param string $identifier |
||
121 | * @return null|object |
||
122 | */ |
||
123 | private function createFromConfig(string $identifier) |
||
131 | |||
132 | /** |
||
133 | * @inheritdoc |
||
134 | */ |
||
135 | public static function displayName(): string |
||
139 | |||
140 | /** |
||
141 | * @inheritdoc |
||
142 | */ |
||
143 | public function getContentColumnType(): string |
||
147 | |||
148 | /** |
||
149 | * @inheritdoc |
||
150 | */ |
||
151 | public function getSettingsHtml() |
||
167 | |||
168 | /** |
||
169 | * @inheritdoc |
||
170 | */ |
||
171 | public function getInputHtml($value, ElementInterface $element = null): string |
||
182 | |||
183 | /** |
||
184 | * @inheritdoc |
||
185 | */ |
||
186 | public function serializeValue($value, ElementInterface $element = null) |
||
203 | |||
204 | /** |
||
205 | * @inheritdoc |
||
206 | */ |
||
207 | public function getSettings(): array |
||
221 | |||
222 | /** |
||
223 | * @param mixed $value |
||
224 | * @param ElementInterface|null $element |
||
225 | * @return array|mixed|null|object |
||
226 | */ |
||
227 | public function normalizeValue($value, ElementInterface $element = null) |
||
269 | } |
||
270 |