| 1 | <?php |
||
| 17 | class Email extends AbstractType |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * The base template path to the field type templates |
||
| 21 | */ |
||
| 22 | const BASE_TEMPLATE_PATH = AbstractType::BASE_TEMPLATE_PATH . '/email'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The settings template path |
||
| 26 | */ |
||
| 27 | const SETTINGS_TEMPLATE_PATH = self::BASE_TEMPLATE_PATH . '/settings'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * The input template path |
||
| 31 | */ |
||
| 32 | const INPUT_TEMPLATE_PATH = self::BASE_TEMPLATE_PATH . '/input'; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var bool |
||
| 36 | */ |
||
| 37 | public $useEmailAsDefaultText = true; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var string |
||
| 41 | */ |
||
| 42 | public $email; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var string|null The input’s placeholder text |
||
| 46 | */ |
||
| 47 | public $placeholder; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritdoc |
||
| 51 | */ |
||
| 52 | public static function displayName(): string |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return string|null |
||
| 59 | */ |
||
| 60 | public function getText() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return string |
||
| 71 | */ |
||
| 72 | public function getUrl(): string |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @inheritdoc |
||
| 79 | */ |
||
| 80 | public function settings(): array |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @inheritdoc |
||
| 93 | */ |
||
| 94 | public function attributes() |
||
| 103 | |||
| 104 | /** |
||
| 105 | * @inheritdoc |
||
| 106 | */ |
||
| 107 | public function rules() |
||
| 142 | } |
||
| 143 |