| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function alterCommentForm(Form $form) |
||
| 17 | { |
||
| 18 | $fields = $form->Fields(); |
||
| 19 | |||
| 20 | |||
| 21 | if ($emailField = $fields->dataFieldByName(Email::class)) { |
||
| 22 | $emailField |
||
| 23 | ->setTitle(_t('CwpCommentingExtension.EMAIL_TITLE', Email::class)) |
||
| 24 | ->setDescription(_t('CwpCommentingExtension.WILL_NOT_BE_PUBLISHED', 'Will not be published.')); |
||
| 25 | } |
||
| 26 | |||
| 27 | if ($urlField = $fields->dataFieldByName('URL')) { |
||
| 28 | $urlField |
||
| 29 | ->setTitle(_t('CwpCommentingExtension.WEBSITE_TITLE', 'Your website (optional)')) |
||
| 30 | ->setAttribute('placeholder', 'http://'); |
||
| 31 | } |
||
| 34 |