You are here

public function LicenseTypeInterface::revokeLicense in Commerce License 8.2

Reacts to the license being revoked.

The license's privileges should be removed from its user. This is called during preSave(), so values may be set on the license entity.

Parameters

\Drupal\commerce_license\Entity\LicenseInterface $license: The license entity.

2 methods override LicenseTypeInterface::revokeLicense()
Role::revokeLicense in src/Plugin/Commerce/LicenseType/Role.php
Reacts to the license being revoked.
TestLicenseBase::revokeLicense in tests/modules/commerce_license_test/src/Plugin/Commerce/LicenseType/TestLicenseBase.php
Reacts to the license being revoked.

File

src/Plugin/Commerce/LicenseType/LicenseTypeInterface.php, line 102

Class

LicenseTypeInterface
Defines the interface for license types.

Namespace

Drupal\commerce_license\Plugin\Commerce\LicenseType

Code

public function revokeLicense(LicenseInterface $license);