You are here

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

Expanded class hierarchy of FullPrice

File

src/Plugin/Commerce/Prorater/FullPrice.php, line 16

Namespace

Drupal\commerce_recurring\Plugin\Commerce\Prorater
View 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

Namesort descending Modifiers Type Description Overrides
FullPrice::prorateOrderItem public function Prorates the given order item. Overrides ProraterBase::prorateOrderItem
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
ProraterBase::buildConfigurationForm public function Form constructor. Overrides PluginFormInterface::buildConfigurationForm
ProraterBase::calculateDependencies public function Calculates dependencies for the configured plugin. Overrides DependentPluginInterface::calculateDependencies
ProraterBase::defaultConfiguration public function Gets default configuration for this plugin. Overrides ConfigurableInterface::defaultConfiguration
ProraterBase::getConfiguration public function Gets this plugin's configuration. Overrides ConfigurableInterface::getConfiguration
ProraterBase::setConfiguration public function Sets the configuration for this plugin instance. Overrides ConfigurableInterface::setConfiguration
ProraterBase::submitConfigurationForm public function Form submission handler. Overrides PluginFormInterface::submitConfigurationForm
ProraterBase::validateConfigurationForm public function Form validation handler. Overrides PluginFormInterface::validateConfigurationForm
ProraterBase::__construct public function Constructs a new ProraterBase object. Overrides PluginBase::__construct 1