You are here

public function TransactorPluginInterface::executeTransaction in Transaction 8

Executes a transaction.

By calling this method, the transactor will set the result code in the transaction.

Parameters

\Drupal\transaction\TransactionInterface $transaction: The transaction to execute.

\Drupal\transaction\TransactionInterface $last_executed: The last executed transaction with the same type and target. Empty if this is the first one.

Return value

bool TRUE if transaction was executed, FALSE otherwise.

See also

\Drupal\transaction\TransactionInterface::getResultCode()

1 method overrides TransactorPluginInterface::executeTransaction()
TransactorBase::executeTransaction in src/TransactorBase.php
Executes a transaction.

File

src/TransactorPluginInterface.php, line 43

Class

TransactorPluginInterface
Defines the interface for transactor plugins.

Namespace

Drupal\transaction

Code

public function executeTransaction(TransactionInterface $transaction, TransactionInterface $last_executed = NULL);