You are here

public function ServicesClientEventResult::getEntityId in Services Client 7.2

Retrieve entity id.

Return value

int

File

include/plugin.inc, line 356
Base plugin definitions. All other plugins should be extended from this set of plugins.

Class

ServicesClientEventResult
Class for handling event operation results.

Code

public function getEntityId() {
  if (empty($this->entity_id)) {
    list($this->entity_id) = entity_extract_ids($this->entity_type, $this->entity);
  }
  return $this->entity_id;
}