commerce_license-8.x-2.x-dev/src/Event/LicenseEvent.php

src/Event/LicenseEvent.php
<?php

namespace Drupal\commerce_license\Event;

use Drupal\commerce\EventBase;
use Drupal\commerce_license\Entity\LicenseInterface;

/**
 * Defines the license event.
 *
 * @see \Drupal\commerce_license\Event\LicenseEvents
 */
class LicenseEvent extends EventBase {

  /**
   * The license.
   *
   * @var \Drupal\commerce_license\Entity\LicenseInterface
   */
  protected $license;

  /**
   * Constructs a new LicenseEvent.
   *
   * @param \Drupal\commerce_license\Entity\LicenseInterface $license
   *   The license.
   */
  public function __construct(LicenseInterface $license) {
    $this->license = $license;
  }

  /**
   * Gets the license.
   *
   * @return \Drupal\commerce_license\Entity\LicenseInterface
   *   Gets the license.
   */
  public function getLicense(): LicenseInterface {
    return $this->license;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc