public function EmptyCartButton::render in Commerce Core 8.2
Render the area.
Parameters
bool $empty: (optional) Indicator if view result is empty or not. Defaults to FALSE.
Return value
array In any case we need a valid Drupal render array to return.
Overrides AreaPluginBase::render
File
- modules/
cart/ src/ Plugin/ views/ area/ EmptyCartButton.php, line 81
Class
- EmptyCartButton
- Defines an area handler for the "Empty cart" button.
Namespace
Drupal\commerce_cart\Plugin\views\areaCode
public function render($empty = FALSE) {
return [];
}