Namespace: util

Drupal.quickedit. util

Namespaces

constants
form

Methods

staticDrupal.quickedit.util.buildUrl(id, urlFormat){string}

Converts a field id into a formatted url path.

Name Type Description
id string

The id of an editable field.

urlFormat string

The Controller route for field processing.

Returns:
Type Description
string The formatted URL.
Example
Drupal.quickedit.util.buildUrl(
  'node/1/body/und/full',
  '/quickedit/form/!entity_type/!id/!field_name/!langcode/!view_mode'
);

staticDrupal.quickedit.util.networkErrorModal(title, message)

Shows a network error modal dialog.

Name Type Description
title string

The title to use in the modal dialog.

message string

The message to use in the modal dialog.