Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / migrate_tools / src / Form / MigrationDeleteForm.php
index b28fa9be3dbe43cf1dfd4a62ce10f38d0cee9935..593046dbaeae4b28e8d040b6294fc963c16e9edb 100644 (file)
@@ -7,7 +7,7 @@ use Drupal\Core\Url;
 use Drupal\Core\Form\FormStateInterface;
 
 /**
- * Class MigrationDeleteForm.
+ * Provides the delete form for our Migration entity.
  *
  * @package Drupal\migrate_tools\Form
  *
@@ -22,9 +22,9 @@ class MigrationDeleteForm extends EntityConfirmFormBase {
    *   Translated string.
    */
   public function getQuestion() {
-    return $this->t('Are you sure you want to delete migration %label?', array(
-        '%label' => $this->entity->label(),
-    ));
+    return $this->t('Are you sure you want to delete migration %label?', [
+      '%label' => $this->entity->label(),
+    ]);
   }
 
   /**
@@ -60,9 +60,9 @@ class MigrationDeleteForm extends EntityConfirmFormBase {
     $this->entity->delete();
 
     // Set a message that the entity was deleted.
-    drupal_set_message(t('Migration %label was deleted.', array(
+    drupal_set_message(t('Migration %label was deleted.', [
       '%label' => $this->entity->label(),
-    )));
+    ]));
 
     // Redirect the user to the list controller when complete.
     $form_state->setRedirectUrl($this->getCancelUrl());