public function IntervalBase::allowTrials in Commerce Recurring Framework 8
Checks whether the billing schedule allows trials.
Return value
bool TRUE if the billing schedule allows trials, FALSE otherwise.
Overrides BillingScheduleInterface::allowTrials
File
- src/
Plugin/ Commerce/ BillingSchedule/ IntervalBase.php, line 143
Class
- IntervalBase
- Base class for interval-based billing schedules.
Namespace
Drupal\commerce_recurring\Plugin\Commerce\BillingScheduleCode
public function allowTrials() {
return !empty($this->configuration['trial_interval']);
}