You are here

public function EntityUsageInterface::deleteByTargetEntity in Entity Usage 8.2

Same name and namespace in other branches
  1. 8.4 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::deleteByTargetEntity()
  2. 8.3 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 96

Class

EntityUsageInterface
Entity usage interface.

Namespace

Drupal\entity_usage

Code

public function deleteByTargetEntity($target_id, $target_type);