function translation_entity_delete_confirm

Form constructor for the translation deletion confirmation.

1 string reference to 'translation_entity_delete_confirm'
translation_entity_menu in drupal/core/modules/translation_entity/translation_entity.module
Implements hook_menu().

File

drupal/core/modules/translation_entity/translation_entity.pages.inc, line 232
The entity translation user interface.

Code

function translation_entity_delete_confirm(array $form, array $form_state, EntityInterface $entity, Language $language) {
  $langcode = $language->langcode;
  $controller = translation_entity_controller($entity
    ->entityType());
  return confirm_form($form, t('Are you sure you want to delete the @language translation of %label?', array(
    '@language' => $language->name,
    '%label' => $entity
      ->label(),
  )), $controller
    ->getEditPath($entity), t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}