I think the render array for the empty cart page should at least be a theme/twig template. Not just a markup.

People might want something awesome to happen there.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

OWast created an issue. See original summary.

OWast’s picture

Title: Twig file for empty cart » Twig file for empty cart page
FileSize
1.4 KB

Kinda like this.

OWast’s picture

Assigned: OWast » Unassigned
Status: Active » Needs review
OWast’s picture

Typo in first patch.

OWast’s picture

I don't do this often enough. :-)

bojanz’s picture

I think this is a good idea.
- Tweaked the patch for coding standards.
- Moved the message to the template, so that there's a single customization point.

Pinging mglaman for review.

bojanz’s picture

Title: Twig file for empty cart page » Add a twig template for the empty cart page

  • bojanz committed 1d0adcb on 8.x-2.x authored by OWast
    Issue #2858423 by OWast, bojanz: Add a twig template for the empty cart...
bojanz’s picture

Status: Needs review » Fixed

Matt said yes. Thanks, OWast!

OWast’s picture

Awesome! Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.