State

Drupal.states. State

new State(state)

Source:
A state object is used for describing the state and performing aliasing.
Parameters:
Name Type Description
state string The name of the state.

Members

(static) aliases

Source:
This list of aliases is used to normalize states and associates negated names with their respective inverse state.

(static) sanitize

Source:
Creates a new State object by sanitizing the passed value.

invert

Source:

Methods

toString() → {string}

Source:
Ensures that just using the state object returns the name.
Returns:
The name of the state.
Type
string