class FullPrice in Commerce Recurring Framework 8
Provides a full price prorater.
Plugin annotation
@CommerceProrater(
id = "full_price",
label = @Translation("None (always charge the full price)"),
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\commerce_recurring\Plugin\Commerce\Prorater\ProraterBase implements ProraterInterface
- class \Drupal\commerce_recurring\Plugin\Commerce\Prorater\FullPrice implements ProraterInterface
- class \Drupal\commerce_recurring\Plugin\Commerce\Prorater\ProraterBase implements ProraterInterface
Expanded class hierarchy of FullPrice
File
- src/
Plugin/ Commerce/ Prorater/ FullPrice.php, line 16
Namespace
Drupal\commerce_recurring\Plugin\Commerce\ProraterView source
class FullPrice extends ProraterBase implements ProraterInterface {
/**
* {@inheritdoc}
*/
public function prorateOrderItem(OrderItemInterface $order_item, BillingPeriod $billing_period, BillingPeriod $full_billing_period) {
return $order_item
->getUnitPrice();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FullPrice:: |
public | function |
Prorates the given order item. Overrides ProraterBase:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
ProraterBase:: |
public | function |
Form constructor. Overrides PluginFormInterface:: |
|
ProraterBase:: |
public | function |
Calculates dependencies for the configured plugin. Overrides DependentPluginInterface:: |
|
ProraterBase:: |
public | function |
Gets default configuration for this plugin. Overrides ConfigurableInterface:: |
|
ProraterBase:: |
public | function |
Gets this plugin's configuration. Overrides ConfigurableInterface:: |
|
ProraterBase:: |
public | function |
Sets the configuration for this plugin instance. Overrides ConfigurableInterface:: |
|
ProraterBase:: |
public | function |
Form submission handler. Overrides PluginFormInterface:: |
|
ProraterBase:: |
public | function |
Form validation handler. Overrides PluginFormInterface:: |
|
ProraterBase:: |
public | function |
Constructs a new ProraterBase object. Overrides PluginBase:: |
1 |