You are here

public function WorkflowInterface::getFirstSid in Workflow 7.2

Gets the first valid state ID, after the creation state.

Uses WorkflowState::getOptions(), because this does an access check. The first State ID is user-dependent!

1 method overrides WorkflowInterface::getFirstSid()
Workflow::getFirstSid in includes/Entity/Workflow.php
Gets the first valid state ID, after the creation state.

File

includes/Entity/WorkflowInterface.php, line 88
Contains Drupal\workflow\Entity\WorkflowInterface.

Class

WorkflowInterface
Defines a common interface for Workflow*Transition* objects.

Code

public function getFirstSid($entity_type, $entity, $field_name, $user, $force);