public function TestLicenseBase::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.
Overrides LicenseTypeInterface::revokeLicense
3 methods override TestLicenseBase::revokeLicense()
- LicenseStateChangeTest::revokeLicense in tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ LicenseStateChangeTest.php - Reacts to the license being revoked.
- LicenseWithField::revokeLicense in tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ LicenseWithField.php - Reacts to the license being revoked.
- StateChangeWithRightsCheck::revokeLicense in tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ StateChangeWithRightsCheck.php - Reacts to the license being revoked.
File
- tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ TestLicenseBase.php, line 29
Class
- TestLicenseBase
- Base class for test license types: implements the needed methods.
Namespace
Drupal\commerce_license_test\Plugin\Commerce\LicenseTypeCode
public function revokeLicense(LicenseInterface $license) {
}