You are here

public function Transaction::getOperationId in Transaction 8

Gets the transaction operation ID.

Return value

string The transaction operation for this transaction. NULL if not set.

Overrides TransactionInterface::getOperationId

File

src/Entity/Transaction.php, line 448

Class

Transaction
Provides the transaction content entity.

Namespace

Drupal\transaction\Entity

Code

public function getOperationId() {
  return $this
    ->get('operation')->target_id;
}