public function CouponRedemption::viewsFormEmpty in Commerce Core 8.2
Method for the condition when view is empty.
Parameters
bool $empty: Variable for view content exists or not.
Return value
bool Returns boolean based on $empty.
File
- modules/
promotion/ src/ Plugin/ views/ area/ CouponRedemption.php, line 171
Class
- CouponRedemption
- Defines a coupon redemption area handler.
Namespace
Drupal\commerce_promotion\Plugin\views\areaCode
public function viewsFormEmpty($empty = FALSE) {
if (!$empty || !empty($this->options['empty'])) {
return $this->options['empty'];
}
return $empty;
}