upgrades core to 8.4.2

This commit is contained in:
Bachir Soussi Chiadmi
2017-11-14 16:09:54 +01:00
parent bd60eff9b3
commit c2b4e25be4
3504 changed files with 140306 additions and 38684 deletions
+25
View File
@@ -0,0 +1,25 @@
/**
* @file
* Attaches behaviors for the Path module.
*/
(function ($, Drupal) {
/**
* Behaviors for settings summaries on path edit forms.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches summary behavior 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();
return path ?
Drupal.t('Alias: @alias', { '@alias': path }) :
Drupal.t('No alias');
});
},
};
}(jQuery, Drupal));