You are here

public function JobInterface::rejected in Translation Management Tool 8

Sets the state of the job to 'rejected'.

Parameters

string $message: 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: Statically set to error.

Return value

\Drupal\tmgmt\JobInterface The job entity.

See also

Job::addMessage()

1 method overrides JobInterface::rejected()
Job::rejected in src/Entity/Job.php
Sets the state of the job to 'rejected'.

File

src/JobInterface.php, line 551

Class

JobInterface
Interface for tmgmt_job entity.

Namespace

Drupal\tmgmt

Code

public function rejected($message = NULL, $variables = array(), $type = 'error');