Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nevergone created an issue. See original summary.

nevergone’s picture

nevergone’s picture

Status: Active » Needs review
nevergone’s picture

Change default view mode.

Status: Needs review » Needs work

The last submitted patch, 4: add_poll_entity_and-2874140-4.patch, failed testing.

nevergone’s picture

nevergone’s picture

Status: Needs work » Needs review
nevergone’s picture

Please review this issue.

nevergone’s picture

.

Berdir’s picture

Status: Needs review » Fixed

Thanks, committed.

Those templates are all a bit weird, quite possibly this could be rewritten into a single template to make it easier to customize in a single place, but that would be a BC break and break customizations of that template.

  • Berdir committed c8a8bfc on 8.x-1.x authored by nevergone
    Issue #2874140 by nevergone: Add poll entity and view mode for...

Status: Fixed » Closed (fixed)

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

kristiaanvandeneynde’s picture

Just out of curiosity, does this not also account as a BC break?

-  function showPollResults(PollInterface $poll, $block = FALSE) {
+  function showPollResults(PollInterface $poll, $view_mode = 'default', $block = FALSE) {

Mentioning it because the function is public, even though I don't see why anyone would call it directly.