LicenseTypeSynchronizableInterface.php in Commerce License 8.2
File
src/Plugin/Commerce/LicenseType/LicenseTypeSynchronizableInterface.phpView source
<?php
namespace Drupal\commerce_license\Plugin\Commerce\LicenseType;
use Drupal\commerce_license\Entity\LicenseInterface;
/**
* Defines the interface for license types.
*/
interface LicenseTypeSynchronizableInterface extends LicenseTypeInterface {
/**
* Gets the license type label.
*
* @return string
* The license type label.
*/
public function getLabel();
/**
* Builds a label for the given license.
*
* @param \Drupal\commerce_license\Entity\LicenseInterface $license
* The license type.
*
* @return string
* The label.
*/
public function buildLabel(LicenseInterface $license);
}
Interfaces
Name | Description |
---|---|
LicenseTypeSynchronizableInterface | Defines the interface for license types. |