AdjustmentType.php in Commerce Core 8.2
File
modules/order/src/Plugin/Commerce/AdjustmentType/AdjustmentType.php
View source
<?php
namespace Drupal\commerce_order\Plugin\Commerce\AdjustmentType;
use Drupal\Core\Plugin\PluginBase;
class AdjustmentType extends PluginBase implements AdjustmentTypeInterface {
public function getId() {
return $this->pluginDefinition['id'];
}
public function getLabel() {
return $this->pluginDefinition['label'];
}
public function getSingularLabel() {
return $this->pluginDefinition['singular_label'];
}
public function getPluralLabel() {
return $this->pluginDefinition['plural_label'];
}
public function getWeight() {
return $this->pluginDefinition['weight'];
}
public function hasUi() {
return $this->pluginDefinition['has_ui'] == TRUE;
}
}