public function TransactionInterface::execute in Transaction 8
Executes the transaction.
The execution result code will be set or changed.
Parameters
bool $save: (optional) Save the transaction after succeeded execution.
\Drupal\User\UserInterface $executor: (optional) The user that executes the transaction. Current user by default.
Return value
bool TRUE if transaction was executed, FALSE otherwise.
Throws
\Drupal\transaction\InvalidTransactionStateException If the transaction is already executed.
See also
\Drupal\transaction\TransactionInterface::getResultCode()
1 method overrides TransactionInterface::execute()
- Transaction::execute in src/
Entity/ Transaction.php - Executes the transaction.
File
- src/
TransactionInterface.php, line 241
Class
- TransactionInterface
- The interface for transaction entities.
Namespace
Drupal\transactionCode
public function execute($save = TRUE, UserInterface $executor = NULL);