Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / modules / content_translation / src / Form / ContentTranslationDeleteForm.php
1 <?php
2
3 namespace Drupal\content_translation\Form;
4
5 use Drupal\Core\Entity\ContentEntityDeleteForm;
6 use Drupal\Core\Form\FormStateInterface;
7 use Drupal\Core\Language\LanguageInterface;
8
9 /**
10  * Delete translation form for content_translation module.
11  *
12  * @internal
13  */
14 class ContentTranslationDeleteForm extends ContentEntityDeleteForm {
15
16   /**
17    * {@inheritdoc}
18    */
19   public function getFormId() {
20     return 'content_translation_delete_confirm';
21   }
22
23   /**
24    * {@inheritdoc}
25    */
26   public function buildForm(array $form, FormStateInterface $form_state, LanguageInterface $language = NULL) {
27     if ($language) {
28       $form_state->set('langcode', $language->getId());
29     }
30     return parent::buildForm($form, $form_state);
31   }
32
33 }