public function CartController::cartPage in Commerce Cart API 8
Outputs a cart view for each non-empty cart belonging to the current user.
Return value
array A render array.
Overrides CartController::cartPage
File
- tests/
modules/ commerce_cart_reactjs/ src/ Controller/ CartController.php, line 16
Class
Namespace
Drupal\commerce_cart_reactjs\ControllerCode
public function cartPage() {
return [
'#attached' => [
'library' => [
'commerce_cart_reactjs/components',
],
],
'#markup' => Markup::create('<div id="reactCartForm"></div>'),
];
}