public function EntityUsageEvent::__construct in Entity Usage 8.3
Same name and namespace in other branches
- 8.4 src/Events/EntityUsageEvent.php \Drupal\entity_usage\Events\EntityUsageEvent::__construct()
- 8 src/Events/EntityUsageEvent.php \Drupal\entity_usage\Events\EntityUsageEvent::__construct()
- 8.2 src/Events/EntityUsageEvent.php \Drupal\entity_usage\Events\EntityUsageEvent::__construct()
EntityUsageEvents constructor.
Parameters
int $target_id: The target entity ID.
string $target_type: The target entity type.
int $source_id: The source entity ID.
string $source_type: The source entity type.
string $source_langcode: The source entity language code.
string $source_vid: The source entity revision ID.
File
- src/
Events/ EntityUsageEvent.php, line 70
Class
- EntityUsageEvent
- Implementation of Entity Usage events.
Namespace
Drupal\entity_usage\EventsCode
public function __construct($target_id = NULL, $target_type = NULL, $source_id = NULL, $source_type = NULL, $source_langcode = NULL, $source_vid = NULL) {
$this->targetEntityId = $target_id;
$this->targetEntityType = $target_type;
$this->sourceEntityId = $source_id;
$this->sourceEntityType = $source_type;
$this->sourceEntityLangcode = $source_langcode;
$this->sourceEntityRevisionId = $source_vid;
}