You are here

public function EntityUsageEvent::__construct in Entity Usage 8

Same name and namespace in other branches
  1. 8.4 src/Events/EntityUsageEvent.php \Drupal\entity_usage\Events\EntityUsageEvent::__construct()
  2. 8.2 src/Events/EntityUsageEvent.php \Drupal\entity_usage\Events\EntityUsageEvent::__construct()
  3. 8.3 src/Events/EntityUsageEvent.php \Drupal\entity_usage\Events\EntityUsageEvent::__construct()

EntityUsageEvents constructor.

Parameters

int $t_id: The identifier of the target entity.

string $t_type: The type of the target entity.

int $re_id: The identifier of the referencing entity.

string $re_type: The type of the entity that is referencing.

string $method: The method or way the two entities are being referenced.

int $count: The number of references to add or remove.

File

src/Events/EntityUsageEvent.php, line 70

Class

EntityUsageEvent
Implementation of Entity Usage events.

Namespace

Drupal\entity_usage\Events

Code

public function __construct($t_id = NULL, $t_type = NULL, $re_id = NULL, $re_type = NULL, $method = NULL, $count = NULL) {
  $this->targetEntityId = $t_id;
  $this->targetEntityType = $t_type;
  $this->referencingEntityId = $re_id;
  $this->referencingEntityType = $re_type;
  $this->method = $method;
  $this->count = $count;
}