You are here

public function LibraryTransaction::getNid in Library 8

Get Node ID.

Overrides LibraryTransactionInterface::getNid

File

src/Entity/LibraryTransaction.php, line 112

Class

LibraryTransaction
Defines the Library transaction entity.

Namespace

Drupal\library\Entity

Code

public function getNid() {
  return $this
    ->get('nid')->target_id;
}