You are here

CommerceShippingMethod.php in Commerce Shipping 8.2

File

src/Annotation/CommerceShippingMethod.php
View source
<?php

namespace Drupal\commerce_shipping\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines the shipping method plugin annotation object.
 *
 * Plugin namespace: Plugin\Commerce\ShippingMethod.
 *
 * @see plugin_api
 *
 * @Annotation
 */
class CommerceShippingMethod extends Plugin {

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

  /**
   * The shipping method label.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;

  /**
   * The supported shipping services.
   *
   * An array of labels keyed by ID.
   *
   * @var array
   */
  public $services = [];

  /**
   * The shipment workflow.
   *
   * @var string
   */
  public $workflow = 'shipment_default';

}

Classes

Namesort descending Description
CommerceShippingMethod Defines the shipping method plugin annotation object.