class CommerceLicenseType in Commerce License 8.2
Defines the license type plugin annotation object.
Plugin namespace: Plugin\Commerce\LicenseType.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\commerce_license\Annotation\CommerceLicenseType
Expanded class hierarchy of CommerceLicenseType
See also
1 file declares its use of CommerceLicenseType
6 classes are annotated with CommerceLicenseType
- ExistingRightsCheckConfig in tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ ExistingRightsCheckConfig.php - Test license type which reports the user has existing rights.
- LicenseStateChangeTest in tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ LicenseStateChangeTest.php - Provides a test license type.
- LicenseWithField in tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ LicenseWithField.php - License type for testing a field can be set when granting and revoking.
- Role in src/
Plugin/ Commerce/ LicenseType/ Role.php - Provides a license type which grants one or more roles.
- SimpleLicenseType in tests/
modules/ commerce_license_test/ src/ Plugin/ Commerce/ LicenseType/ SimpleLicenseType.php - This license type plugin is for use in tests that don't need to do anything in particular with the license type, but need to give a type for license entities.
File
- src/
Annotation/ CommerceLicenseType.php, line 16
Namespace
Drupal\commerce_license\AnnotationView source
class CommerceLicenseType extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The license type label.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommerceLicenseType:: |
public | property | The plugin ID. | |
CommerceLicenseType:: |
public | property | The license type label. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |