You are here

public function ContentHubEntitiesTracking::getEntityId in Acquia Content Hub 8

Returns the Entity ID.

Return value

int The Entity ID.

2 calls to ContentHubEntitiesTracking::getEntityId()
ContentHubEntitiesTracking::delete in src/ContentHubEntitiesTracking.php
Deletes the entry for this particular entity.
ContentHubEntitiesTracking::save in src/ContentHubEntitiesTracking.php
Saves a record of an imported entity.

File

src/ContentHubEntitiesTracking.php, line 214

Class

ContentHubEntitiesTracking
Tracks in a table the list of all entities imported from Content Hub.

Namespace

Drupal\acquia_contenthub

Code

public function getEntityId() {
  return isset($this
    ->getTrackingEntity()->entity_id) ? $this
    ->getTrackingEntity()->entity_id : NULL;
}