You are here

public function WorkflowTypeAttributeTrait::setWorkflowId in Workflow 8

Sets the Workflow ID of this object.

Parameters

string $wid: Workflow ID

Return value

object

File

src/WorkflowTypeAttributeTrait.php, line 72

Class

WorkflowTypeAttributeTrait
Wrapper methods for Workflow* objects.

Namespace

Drupal\workflow

Code

public function setWorkflowId($wid) {
  $this->wid = $wid;
  $this->workflow = NULL;
  return $this;
}