You are here

public function JobItemInterface::setState in Translation Management Tool 8

Updates the state of the job item.

Parameters

string $state: The new state of the job item. Has to be one of the job state constants.

string $message: (Optional) The log message to be saved along with the state change.

array $variables: (Optional) An array of variables to replace in the message on display.

string $type: (optional) Statically set to status.

Return value

int The updated state of the job item if it could be set.

See also

Job::addMessage()

1 method overrides JobItemInterface::setState()
JobItem::setState in src/Entity/JobItem.php
Updates the state of the job item.

File

src/JobItemInterface.php, line 312

Class

JobItemInterface
Interface for tmgmt_job_item entity.

Namespace

Drupal\tmgmt

Code

public function setState($state, $message = NULL, $variables = array(), $type = 'debug');