You are here

public function EmptyCartButton::viewsFormEmpty in Commerce Core 8.2

Gets whether the views form should be shown when the view has no results.

Parameters

bool $empty: Whether the view has results.

Return value

bool True if the views form should be shown, FALSE otherwise.

File

modules/cart/src/Plugin/views/area/EmptyCartButton.php, line 94

Class

EmptyCartButton
Defines an area handler for the "Empty cart" button.

Namespace

Drupal\commerce_cart\Plugin\views\area

Code

public function viewsFormEmpty($empty) {
  return $empty;
}