public function WorkflowInterface::getNextSid in Workflow 7.2
Returns the next state for the current state. Is used in VBO Bulk actions.
Parameters
string $entity_type: The type of the entity at hand.
object $entity: The entity at hand. May be NULL (E.g., on a Field settings page).
$field_name:
$user:
bool $force:
Return value
array An array of sid=>label pairs. If $this->sid is set, returns the allowed transitions from this state. If $this->sid is 0 or FALSE, then labels of ALL states of the State's Workflow are returned.
1 method overrides WorkflowInterface::getNextSid()
- Workflow::getNextSid in includes/
Entity/ Workflow.php - Returns the next state for the current state.
File
- includes/
Entity/ WorkflowInterface.php, line 109 - Contains Drupal\workflow\Entity\WorkflowInterface.
Class
- WorkflowInterface
- Defines a common interface for Workflow*Transition* objects.
Code
public function getNextSid($entity_type, $entity, $field_name, $user, $force = FALSE);