diff core/modules/content_translation/src/ContentTranslationHandler.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 1fec387a4317
children 129ea1e6d783
line wrap: on
line diff
--- a/core/modules/content_translation/src/ContentTranslationHandler.php	Thu Apr 26 11:26:54 2018 +0100
+++ b/core/modules/content_translation/src/ContentTranslationHandler.php	Tue Jul 10 15:07:59 2018 +0100
@@ -743,7 +743,7 @@
    * Takes care of entity deletion.
    */
   public function entityFormDelete($form, FormStateInterface $form_state) {
-    $form_object = $form_state->getFormObject()->getEntity();
+    $form_object = $form_state->getFormObject();
     $entity = $form_object->getEntity();
     if (count($entity->getTranslationLanguages()) > 1) {
       drupal_set_message(t('This will delete all the translations of %label.', ['%label' => $entity->label()]), 'warning');