You are here

class CommerceLicenseType in Commerce License 8.2

Defines the license type plugin annotation object.

Plugin namespace: Plugin\Commerce\LicenseType.

Hierarchy

Expanded class hierarchy of CommerceLicenseType

See also

Plugin API

1 file declares its use of CommerceLicenseType
LicenseTypeManager.php in src/LicenseTypeManager.php
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.

... See full list

File

src/Annotation/CommerceLicenseType.php, line 16

Namespace

Drupal\commerce_license\Annotation
View 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

Namesort descending Modifiers Type Description Overrides
CommerceLicenseType::$id public property The plugin ID.
CommerceLicenseType::$label public property The license type label.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2