public function LicenseTypeInterface::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.
3 methods override LicenseTypeInterface::buildLabel()
- LicenseTypeSynchronizableInterface::buildLabel in src/
Plugin/ Commerce/ LicenseType/ LicenseTypeSynchronizableInterface.php - Builds a label for the given license.
- Role::buildLabel in src/
Plugin/ Commerce/ LicenseType/ Role.php - Builds a label for the given license.
- TestLicenseBase::buildLabel in tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ TestLicenseBase.php - Builds a label for the given license.
File
- src/
Plugin/ Commerce/ LicenseType/ LicenseTypeInterface.php, line 58
Class
- LicenseTypeInterface
- Defines the interface for license types.
Namespace
Drupal\commerce_license\Plugin\Commerce\LicenseTypeCode
public function buildLabel(LicenseInterface $license);