You are here

public function WebformEntityReferenceManager::deleteUserWebformId in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformEntityReferenceManager.php \Drupal\webform\WebformEntityReferenceManager::deleteUserWebformId()

Delete user specified webform for a source entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: A fieldable content entity.

Overrides WebformEntityReferenceManagerInterface::deleteUserWebformId

File

src/WebformEntityReferenceManager.php, line 155

Class

WebformEntityReferenceManager
Webform entity reference (field) manager.

Namespace

Drupal\webform

Code

public function deleteUserWebformId(EntityInterface $entity) {
  $module = 'webform_' . $entity
    ->getEntityTypeId();
  $name = $entity
    ->id();
  $this->userData
    ->delete($module, NULL, $name);
}