You are here

public function LocalTaskInterface::setStatus in Translation Management Tool 8

Updates the status of the task.

Parameters

int $status: The new status of the task. Has to be one of the task status constants.

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

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

string $type: (optional) The message type.

Return value

int The updated status of the task if it could be set.

See also

Job::addMessage()

1 method overrides LocalTaskInterface::setStatus()
LocalTask::setStatus in translators/tmgmt_local/src/Entity/LocalTask.php
Updates the status of the task.

File

translators/tmgmt_local/src/LocalTaskInterface.php, line 116

Class

LocalTaskInterface
Interface for tmgmt_local_task entity.

Namespace

Drupal\tmgmt_local

Code

public function setStatus($status, $message = NULL, $variables = array(), $type = 'debug');