You are here

CommercePromotionOffer.php in Commerce Core 8.2

File

modules/promotion/src/Annotation/CommercePromotionOffer.php
View source
<?php

namespace Drupal\commerce_promotion\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines the promotion offer plugin annotation object.
 *
 * Plugin namespace: Plugin\Commerce\PromotionOffer.
 *
 * @Annotation
 */
class CommercePromotionOffer extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The label of the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label;

  /**
   * The offer entity type ID.
   *
   * This is the entity type ID of the entity passed to the plugin during execution.
   * For example: 'commerce_order'.
   *
   * @var string
   */
  public $entity_type;

}

Classes

Namesort descending Description
CommercePromotionOffer Defines the promotion offer plugin annotation object.