path.js 518 B

123456789101112131415161718
  1. /**
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/2815083
  5. * @preserve
  6. **/
  7. (function ($, Drupal) {
  8. Drupal.behaviors.pathDetailsSummaries = {
  9. attach: function attach(context) {
  10. $(context).find('.path-form').drupalSetSummary(function (context) {
  11. var path = $('.js-form-item-path-0-alias input').val();
  12. return path ? Drupal.t('Alias: @alias', { '@alias': path }) : Drupal.t('No alias');
  13. });
  14. }
  15. };
  16. })(jQuery, Drupal);