diff options
Diffstat (limited to 'core/modules/path/path.es6.js')
-rw-r--r-- | core/modules/path/path.es6.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/core/modules/path/path.es6.js b/core/modules/path/path.es6.js deleted file mode 100644 index 9d55741b78d..00000000000 --- a/core/modules/path/path.es6.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @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 pathElement = document.querySelector( - '.js-form-item-path-0-alias input', - ); - const path = pathElement && pathElement.value; - return path - ? Drupal.t('Alias: @alias', { '@alias': path }) - : Drupal.t('No alias'); - }); - }, - }; -})(jQuery, Drupal); |