| 1 | <?php |
||
| 11 | abstract class AbstractField extends Field implements PreviewableFieldInterface |
||
| 12 | { |
||
| 13 | |||
| 14 | const FIELD_TYPE = ''; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @inheritdoc |
||
| 18 | */ |
||
| 19 | public static function displayName(): string |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param ElementInterface $element |
||
| 26 | * @return null|string |
||
| 27 | */ |
||
| 28 | abstract protected function findObjectId(ElementInterface $element); |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritdoc |
||
| 32 | */ |
||
| 33 | public static function hasContentColumn(): bool |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @inheritdoc |
||
| 40 | */ |
||
| 41 | public static function supportedTranslationMethods(): array |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @inheritdoc |
||
| 50 | */ |
||
| 51 | public function normalizeValue($value, ElementInterface $element = null) |
||
| 64 | |||
| 65 | |||
| 66 | /** |
||
| 67 | * @inheritdoc |
||
| 68 | */ |
||
| 69 | public function getTableAttributeHtml($value, ElementInterface $element): string |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @inheritdoc |
||
| 76 | */ |
||
| 77 | public function getInputHtml($value, ElementInterface $element = null): string |
||
| 90 | } |
||
| 91 |