rabbit_hole-8.x-1.x-dev/modules/rh_node/rh-node.js

modules/rh_node/rh-node.js
/**
 * @file
 */

(function ($, Drupal) {
  Drupal.behaviors.rhNode = {
    attach(context, settings) {
      // Display the action in the vertical tab summary.
      $(context)
        .find('.rabbit-hole-settings-form')
        .drupalSetSummary(function (context) {
          const $action = $(
            '.rabbit-hole-action-setting input:checked',
            context,
          );
          return Drupal.checkPlain($action.next('label').text());
        });
    },
  };
})(jQuery, Drupal);

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc