Make \Drupal\form_test\Plugin\Block\RedirectFormBlock cachable

Created on 11 July 2023, about 1 year ago
Updated 12 July 2023, about 1 year ago

Problem/Motivation

In πŸ“Œ [META] Fix @todo items referencing closed issues Active we've discovered there's a @todo in \Drupal\form_test\Plugin\Block\RedirectFormBlock::getCacheMaxAge.
This @todo is linked to an d.o. issue that is already closed: #2351015: URL generation does not bubble cache contexts β†’ .

This is the @todo:

  /**
   * {@inheritdoc}
   *
   * @todo Make cacheable once https://www.drupal.org/node/2351015 lands.
   */
  public function getCacheMaxAge() {
    return 0;
  }

Steps to reproduce

Proposed resolution

Remove the getCacheMaxAge() in this class.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

11.0 πŸ”₯

Component
FormΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡³πŸ‡±Netherlands Spokje

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024