Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / path / path.es6.js
index 97ea9f4d82f9552706edefebd08aace977c618e3..f03a46b0b5d0604dc09e3c5d10449d43a9980661 100644 (file)
@@ -2,7 +2,7 @@
  * @file
  * Attaches behaviors for the Path module.
  */
-(function ($, Drupal) {
+(function($, Drupal) {
   /**
    * Behaviors for settings summaries on path edit forms.
    *
    */
   Drupal.behaviors.pathDetailsSummaries = {
     attach(context) {
-      $(context).find('.path-form').drupalSetSummary((context) => {
-        const path = $('.js-form-item-path-0-alias input').val();
+      $(context)
+        .find('.path-form')
+        .drupalSetSummary(context => {
+          const path = $('.js-form-item-path-0-alias input').val();
 
-        return path ?
-          Drupal.t('Alias: @alias', { '@alias': path }) :
-          Drupal.t('No alias');
-      });
+          return path
+            ? Drupal.t('Alias: @alias', { '@alias': path })
+            : Drupal.t('No alias');
+        });
     },
   };
-}(jQuery, Drupal));
+})(jQuery, Drupal);