TestLicenseBase.php in Commerce License 8.2
File
tests/modules/commerce_license_test/src/Plugin/Commerce/LicenseType/TestLicenseBase.php
View source
<?php
namespace Drupal\commerce_license_test\Plugin\Commerce\LicenseType;
use Drupal\commerce_license\Entity\LicenseInterface;
use Drupal\commerce_license\Plugin\Commerce\LicenseType\LicenseTypeBase;
class TestLicenseBase extends LicenseTypeBase {
public function buildLabel(LicenseInterface $license) {
return 'test license';
}
public function grantLicense(LicenseInterface $license) {
}
public function revokeLicense(LicenseInterface $license) {
}
}
Classes
Name |
Description |
TestLicenseBase |
Base class for test license types: implements the needed methods. |