You are here

public function Transaction::setResultCode in Transaction 8

Sets the execution result code.

Parameters

int $code: The result code.

Return value

\Drupal\transaction\TransactionInterface The called transaction.

Overrides TransactionInterface::setResultCode

See also

\Drupal\transaction\TransactionInterface::getResultCode()

File

src/Entity/Transaction.php, line 386

Class

Transaction
Provides the transaction content entity.

Namespace

Drupal\transaction\Entity

Code

public function setResultCode($code) {
  $this
    ->get('result_code')
    ->setValue($code);
  return $this;
}