You are here

public function EventHandler::setEntity in Services Client 7.2

Set entity for current event.

Parameters

stdClass $entity: Drupal entity object like node or user.

Return value

EntityHandler Reference to itself.

File

include/event.inc, line 374

Class

EventHandler
Event handler plugin.

Code

public function setEntity($entity) {
  $this->entity = $entity;
  return $this;
}