public function EventHandler::getEntityId in Services Client 7.2
Retrieve entity ID.
Return value
int Retrieve local entity id.
4 calls to EventHandler::getEntityId()
- EntityDeleteHandler::execute in include/
event.inc - Execute event and send event to remove endpoint.
- EntitySaveHandler::execute in include/
event.inc - Execute event and send event to remove endpoint.
- EventHandler::enqueue in include/
event.inc - Enqueue item if should be queue.
- EventHandler::logErrorResult in include/
event.inc - Log error result from services client operation.
File
- include/
event.inc, line 395
Class
- EventHandler
- Event handler plugin.
Code
public function getEntityId() {
if ($this
->getEntity()) {
list($entity_id) = entity_extract_ids($this->event->entity_type, $this
->getEntity());
return $entity_id;
}
return NULL;
}