You are here

public function Transaction::getExecutorId in Transaction 8

Gets the ID of the user that executed the transaction.

Return value

int The user ID of the executor. FALSE if transaction was no executed.

Overrides TransactionInterface::getExecutorId

File

src/Entity/Transaction.php, line 405

Class

Transaction
Provides the transaction content entity.

Namespace

Drupal\transaction\Entity

Code

public function getExecutorId() {
  return $this
    ->get('executor')
    ->isEmpty() ? FALSE : $this
    ->get('executor')->target_id;
}