public function EntityUsageInterface::registerUsage in Entity Usage 8.3
Same name and namespace in other branches
- 8.4 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::registerUsage()
- 8.2 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::registerUsage()
Register a new usage record.
Note that this method will honor the settings defined on the configuration page, hence potentially ignoring the register if the settings for the called combination are to not track this usage. Also, the hook hook_entity_usage_block_tracking() will be invoked, so other modules will have an opportunity to block this record before it is written to DB.
Parameters
int|string $target_id: The target entity ID.
string $target_type: The target entity type.
int|string $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.
1 method overrides EntityUsageInterface::registerUsage()
- EntityUsage::registerUsage in src/
EntityUsage.php - Register a new usage record.
File
- src/
EntityUsageInterface.php, line 34
Class
- EntityUsageInterface
- Entity usage interface.
Namespace
Drupal\entity_usageCode
public function registerUsage($target_id, $target_type, $source_id, $source_type, $source_langcode, $source_vid);