Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 7 |
| ContentTranslationDeleteForm | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
12 | |
0.00% |
0 / 7 |
| getFormId | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| buildForm | |
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 5 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\content_translation\Form\ContentTranslationDeleteForm. | |
| */ | |
| namespace Drupal\content_translation\Form; | |
| use Drupal\Core\Entity\ContentEntityDeleteForm; | |
| use Drupal\Core\Form\FormStateInterface; | |
| use Drupal\Core\Language\LanguageInterface; | |
| /** | |
| * Delete translation form for content_translation module. | |
| */ | |
| class ContentTranslationDeleteForm extends ContentEntityDeleteForm { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getFormId() { | |
| return 'content_translation_delete_confirm'; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function buildForm(array $form, FormStateInterface $form_state, LanguageInterface $language = NULL) { | |
| if ($language) { | |
| $form_state->set('langcode', $language->getId()); | |
| } | |
| return parent::buildForm($form, $form_state); | |
| } | |
| } |