You are here

interface AdjustmentTypeInterface in Commerce Core 8.2

Defines the interface for adjustment types.

Hierarchy

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\AdjustmentType
View 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

Namesort descending Modifiers Type Description Overrides
AdjustmentTypeInterface::getId public function Gets the adjustment type ID. 1
AdjustmentTypeInterface::getLabel public function Gets the adjustment type label. 1
AdjustmentTypeInterface::getPluralLabel public function Gets the adjustment type plural label. 1
AdjustmentTypeInterface::getSingularLabel public function Gets the adjustment type singular label. 1
AdjustmentTypeInterface::getWeight public function Gets the adjustment type weight. 1
AdjustmentTypeInterface::hasUi public function Gets whether the adjustment type can be created from the UI. 1