Namespace: util

Drupal.quickedit.util

Namespaces

constants
form

Methods

(static) buildUrl(id, urlFormat) → {string}

Converts a field id into a formatted url path.

Parameters:
Name Type Description
id string

The id of an editable field.

urlFormat string

The Controller route for field processing.

Source:
Returns:

The formatted URL.

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

(static) networkErrorModal(title, message)

Shows a network error modal dialog.

Parameters:
Name Type Description
title string

The title to use in the modal dialog.

message string

The message to use in the modal dialog.

Source: