public function BillingPeriodItem::isEmpty in Commerce Recurring Framework 8
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
File
- src/
Plugin/ Field/ FieldType/ BillingPeriodItem.php, line 68
Class
- BillingPeriodItem
- Plugin implementation of the 'commerce_billing_period' field type.
Namespace
Drupal\commerce_recurring\Plugin\Field\FieldTypeCode
public function isEmpty() {
return empty($this->starts) || empty($this->ends);
}