You are here

public static function JobResult::success in Advanced Queue 8

Constructs a success result.

Parameters

string $message: The message. Optional.

Return value

static

3 calls to JobResult::success()
JobResultTest::testSuccess in tests/src/Unit/JobResultTest.php
@covers ::success @covers ::getState @covers ::getMessage
Simple::process in tests/modules/advancedqueue_test/src/Plugin/AdvancedQueue/JobType/Simple.php
Processes the given job.
Sleepy::process in tests/modules/advancedqueue_test/src/Plugin/AdvancedQueue/JobType/Sleepy.php
Processes the given job.

File

src/JobResult.php, line 67

Class

JobResult
Represents a job result.

Namespace

Drupal\advancedqueue

Code

public static function success($message = '') {
  return new static(Job::STATE_SUCCESS, $message);
}