Class: State

Drupal.states. State

new Drupal.states.State(state)

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

Name Type Description
state string

The name of the state.

Members

staticDrupal.states.State.aliases

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

staticDrupal.states.State.sanitize

Creates a new State object by sanitizing the passed value.

invert

Methods

toString(){string}

Ensures that just using the state object returns the name.

Returns:
Type Description
string The name of the state.