You are here

public function License::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.

Overrides LicenseInterface::setValuesFromPlugin

File

src/Entity/License.php, line 171

Class

License
Defines the License entity.

Namespace

Drupal\commerce_license\Entity

Code

public function setValuesFromPlugin(LicenseTypeInterface $license_plugin) {
  $license_plugin
    ->setConfigurationValuesOnLicense($this);
}