interface AdjustmentTypeInterface in Commerce Core 8.2
Defines the interface for adjustment types.
Hierarchy
- interface \Drupal\commerce_order\Plugin\Commerce\AdjustmentType\AdjustmentTypeInterface
Expanded class hierarchy of AdjustmentTypeInterface
All classes that implement AdjustmentTypeInterface
File
- modules/
order/ src/ Plugin/ Commerce/ AdjustmentType/ AdjustmentTypeInterface.php, line 8
Namespace
Drupal\commerce_order\Plugin\Commerce\AdjustmentTypeView source
interface AdjustmentTypeInterface {
/**
* Gets the adjustment type ID.
*
* @return string
* The adjustment type ID.
*/
public function getId();
/**
* Gets the adjustment type label.
*
* @return string
* The adjustment type label.
*/
public function getLabel();
/**
* Gets the adjustment type singular label.
*
* @return string
* The adjustment type singular label.
*/
public function getSingularLabel();
/**
* Gets the adjustment type plural label.
*
* @return string
* The adjustment type plural label.
*/
public function getPluralLabel();
/**
* Gets the adjustment type weight.
*
* @return int
* The adjustment type weight.
*/
public function getWeight();
/**
* Gets whether the adjustment type can be created from the UI.
*
* @return bool
* TRUE if the adjustment type can be created from the UI, FALSE otherwise.
*/
public function hasUi();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AdjustmentTypeInterface:: |
public | function | Gets the adjustment type ID. | 1 |
AdjustmentTypeInterface:: |
public | function | Gets the adjustment type label. | 1 |
AdjustmentTypeInterface:: |
public | function | Gets the adjustment type plural label. | 1 |
AdjustmentTypeInterface:: |
public | function | Gets the adjustment type singular label. | 1 |
AdjustmentTypeInterface:: |
public | function | Gets the adjustment type weight. | 1 |
AdjustmentTypeInterface:: |
public | function | Gets whether the adjustment type can be created from the UI. | 1 |