Error message

  • Warning: count(): Parameter must be an array or an object that implements Countable in _api_make_match_member_link() (line 1230 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).
  • Warning: count(): Parameter must be an array or an object that implements Countable in _api_make_match_member_link() (line 1230 of /home/projects/api/www/sites/all/modules/api/api.formatting.inc).

public function LocalTaskInterface::setStatus

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');