You are here

public function EntityUsageInterface::deleteBySourceEntity in Entity Usage 8.3

Same name and namespace in other branches
  1. 8.4 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::deleteBySourceEntity()
  2. 8.2 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::deleteBySourceEntity()

Delete all records for a given source entity.

Parameters

int|string $source_id: The source entity ID.

string $source_type: The source entity type.

string $source_langcode: (optional) The source entity language code. Defaults to NULL.

string $source_vid: (optional) The source entity revision ID. Defaults to NULL.

1 method overrides EntityUsageInterface::deleteBySourceEntity()
EntityUsage::deleteBySourceEntity in src/EntityUsage.php
Delete all records for a given source entity.

File

src/EntityUsageInterface.php, line 82

Class

EntityUsageInterface
Entity usage interface.

Namespace

Drupal\entity_usage

Code

public function deleteBySourceEntity($source_id, $source_type, $source_langcode = NULL, $source_vid = NULL);