public function Transaction::getTargetEntityId in Transaction 8
Get the transaction target entity ID.
Return value
int The transaction's target entity ID.
Overrides TransactionInterface::getTargetEntityId
1 call to Transaction::getTargetEntityId()
- Transaction::urlRouteParameters in src/
Entity/ Transaction.php - Gets an array of placeholders for this entity.
File
- src/
Entity/ Transaction.php, line 492
Class
- Transaction
- Provides the transaction content entity.
Namespace
Drupal\transaction\EntityCode
public function getTargetEntityId() {
return $this
->get('target_entity')
->isEmpty() ? FALSE : $this
->get('target_entity')->target_id;
}