public function WorkflowInterface::getFirstSid in Workflow 8
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!
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity at hand. May be NULL (E.g., on a Field settings page).
string $field_name:
\Drupal\Core\Session\AccountInterface $user:
bool $force:
Return value
string A State ID.
1 method overrides WorkflowInterface::getFirstSid()
- Workflow::getFirstSid in src/
Entity/ Workflow.php - Gets the first valid state ID, after the creation state.
File
- src/
Entity/ WorkflowInterface.php, line 84
Class
- WorkflowInterface
- Defines a common interface for Workflow*Transition* objects.
Namespace
Drupal\workflow\EntityCode
public function getFirstSid(EntityInterface $entity, $field_name, AccountInterface $user, $force = FALSE);