public function WorkflowInterface::getNextSid in Workflow 8
Returns the next state for the current state.
@usage Is used in VBO Bulk actions.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity at hand.
string $field_name:
\Drupal\Core\Session\AccountInterface $user:
bool $force:
Return value
string A State ID.
1 method overrides WorkflowInterface::getNextSid()
- Workflow::getNextSid in src/
Entity/ Workflow.php - Returns the next state for the current state.
File
- src/
Entity/ WorkflowInterface.php, line 100
Class
- WorkflowInterface
- Defines a common interface for Workflow*Transition* objects.
Namespace
Drupal\workflow\EntityCode
public function getNextSid(EntityInterface $entity, $field_name, AccountInterface $user, $force = FALSE);