You are here

public function WorkflowState::isActive in Workflow 8

Returns the Workflow object of this State.

Return value

bool TRUE if state is active, else FALSE.

File

src/Entity/WorkflowState.php, line 330

Class

WorkflowState
Workflow configuration entity to persistently store configuration.

Namespace

Drupal\workflow\Entity

Code

public function isActive() {
  return (bool) $this->status;
}