-
- /**
- * Attaches the behavior.
- *
- * @param {Element} context
- * The context for attaching the behavior.
- * @param {object} settings
- * Settings object.
- * @param {object} settings.machineName
- * A list of elements to process, keyed by the HTML ID of the form
- * element containing the human-readable value. Each element is an object
- * defining the following properties:
- * - target: The HTML ID of the machine name form element.
- * - suffix: The HTML ID of a container to show the machine name preview
- * in (usually a field suffix after the human-readable name
- * form element).
- * - label: The label to show for the machine name preview.
- * - replace_pattern: A regular expression (without modifiers) matching
- * disallowed characters in the machine name; e.g., '[^a-z0-9]+'.
- * - replace: A character to replace disallowed characters with; e.g.,
- * '_' or '-'.
- * - standalone: Whether the preview should stay in its own element
- * rather than the suffix of the source element.
- * - field_prefix: The #field_prefix of the form element.
- * - field_suffix: The #field_suffix of the form element.
- */
- attach: function (context, settings) {