You are here

public function TransactionInterface::setOperation in Transaction 8

Sets the transaction operation.

Parameters

string|\Drupal\transaction\TransactionOperationInterface $operation: (optional) The transaction operation config entity or its ID. Defaults to NULL that clears the current value.

Return value

\Drupal\transaction\TransactionInterface The called transaction.

1 method overrides TransactionInterface::setOperation()
Transaction::setOperation in src/Entity/Transaction.php
Sets the transaction operation.

File

src/TransactionInterface.php, line 162

Class

TransactionInterface
The interface for transaction entities.

Namespace

Drupal\transaction

Code

public function setOperation($operation = NULL);