You are here

public function LingotekEntity::getNodeId in Lingotek Translation 7.7

4 calls to LingotekEntity::getNodeId()
LingotekEntity::deleteMetadataValue in lib/Drupal/lingotek/LingotekEntity.php
Deletes a Lingotek metadata value for this item
LingotekEntity::getMetadataValue in lib/Drupal/lingotek/LingotekEntity.php
Gets a Lingotek metadata value for this item.
LingotekEntity::metadata in lib/Drupal/lingotek/LingotekEntity.php
Gets the local Lingotek metadata for this entity.
LingotekEntity::setMetadataValue in lib/Drupal/lingotek/LingotekEntity.php
Sets a Lingotek metadata value for this item.

File

lib/Drupal/lingotek/LingotekEntity.php, line 340
Defines LingotekEntity.

Class

LingotekEntity
A class wrapper for Lingotek-specific behavior on nodes.

Code

public function getNodeId() {
  return !empty($this->entity_id) ? $this->entity_id : intval($this->entity);
}