You are here

public function State::weight in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workflows/src/State.php \Drupal\workflows\State::weight()

Gets the state's weight.

Return value

int The state's weight.

Overrides StateInterface::weight

File

core/modules/workflows/src/State.php, line 74

Class

State
A value object representing a workflow state.

Namespace

Drupal\workflows

Code

public function weight() {
  return $this->weight;
}