public function Transaction::getExecutor in Transaction 8
Gets the user that executed the transaction.
Return value
\Drupal\User\UserInterface The executor user. NULL if transaction was no executed.
Overrides TransactionInterface::getExecutor
File
- src/
Entity/ Transaction.php, line 412
Class
- Transaction
- Provides the transaction content entity.
Namespace
Drupal\transaction\EntityCode
public function getExecutor() {
return $this
->get('executor')
->isEmpty() ? NULL : $this
->get('executor')->entity;
}