Class: State

Drupal.states.State(state)

new State(state)

A state object is used for describing the state and performing aliasing.

Parameters:
Name Type Description
state string

The name of the state.

Source:

Members

(static) aliases

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

Source:

(static) sanitize

Creates a new State object by sanitizing the passed value.

Source:

invert

Source:

Methods

toString() → {string}

Ensures that just using the state object returns the name.

Source:
Returns:

The name of the state.

Type
string