class StockEventType in Commerce Stock 8
Defines a stock event type item annotation object.
Plugin namespace: Plugin\Commerce\StockEventType.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\commerce_stock\Annotation\StockEventType
Expanded class hierarchy of StockEventType
See also
\Drupal\commerce_stock\Plugin\StockEventTypeManager
6 classes are annotated with StockEventType
- OrderCancel in src/
Plugin/ Commerce/ StockEventType/ OrderCancel.php - Provides the order place event type.
- OrderDelete in src/
Plugin/ Commerce/ StockEventType/ OrderDelete.php - Provides the order delete event type.
- OrderItemDelete in src/
Plugin/ Commerce/ StockEventType/ OrderItemDelete.php - Provides the order item delete event type.
- OrderItemUpdate in src/
Plugin/ Commerce/ StockEventType/ OrderItemUpdate.php - Provides the order item update event type.
- OrderPlace in src/
Plugin/ Commerce/ StockEventType/ OrderPlace.php - Provides the order place event type.
File
- src/
Annotation/ StockEventType.php, line 17
Namespace
Drupal\commerce_stock\AnnotationView source
class StockEventType extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The stock event type label.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $label;
/**
* The stock event type display label.
*
* For enventually use in UI.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $displayLabel;
/**
* The stock event type default transaction message.
*
* To use as default transaction message.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $transactionMessage;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
StockEventType:: |
public | property | The stock event type display label. | |
StockEventType:: |
public | property | The plugin ID. | |
StockEventType:: |
public | property | The stock event type label. | |
StockEventType:: |
public | property | The stock event type default transaction message. |