public function EntityUsageInterface::deleteByTargetEntity in Entity Usage 8.3
Same name and namespace in other branches
- 8.4 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::deleteByTargetEntity()
- 8.2 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::deleteByTargetEntity()
Delete all records for a given target entity.
Parameters
int|string $target_id: The target entity ID.
string $target_type: The target entity type.
1 method overrides EntityUsageInterface::deleteByTargetEntity()
- EntityUsage::deleteByTargetEntity in src/
EntityUsage.php - Delete all records for a given target entity.
File
- src/
EntityUsageInterface.php, line 92
Class
- EntityUsageInterface
- Entity usage interface.
Namespace
Drupal\entity_usageCode
public function deleteByTargetEntity($target_id, $target_type);