You are here

public function LicenseInterface::setValuesFromPlugin in Commerce License 8.2

Set values on the license from a configured license type plugin.

This should be called when a license is created for an order, using the configured license type plugin on the product variation that is being purchased.

Parameters

\Drupal\commerce_license\Plugin\Commerce\LicenseType\LicenseTypeInterface $license_plugin: The configured license type plugin.

1 method overrides LicenseInterface::setValuesFromPlugin()
License::setValuesFromPlugin in src/Entity/License.php
Set values on the license from a configured license type plugin.

File

src/Entity/LicenseInterface.php, line 142

Class

LicenseInterface
Provides an interface for License entities.

Namespace

Drupal\commerce_license\Entity

Code

public function setValuesFromPlugin(LicenseTypeInterface $license_plugin);