public function TestLicenseBase::buildLabel in Commerce License 8.2
Builds a label for the given license.
Parameters
\Drupal\commerce_license\Entity\LicenseInterface $license: The license.
Return value
string The label.
Overrides LicenseTypeInterface::buildLabel
File
- tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ TestLicenseBase.php, line 16
Class
- TestLicenseBase
- Base class for test license types: implements the needed methods.
Namespace
Drupal\commerce_license_test\Plugin\Commerce\LicenseTypeCode
public function buildLabel(LicenseInterface $license) {
return 'test license';
}