public function File::revokeLicense in Commerce File 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
File
- src/
Plugin/ Commerce/ LicenseType/ File.php, line 128
Class
- File
- The file license type.
Namespace
Drupal\commerce_file\Plugin\Commerce\LicenseTypeCode
public function revokeLicense(LicenseInterface $license) {
}