function RedirectFormBlock::getCacheMaxAge

Same name and namespace in other branches
  1. 8.9.x core/modules/system/tests/modules/form_test/src/Plugin/Block/RedirectFormBlock.php \Drupal\form_test\Plugin\Block\RedirectFormBlock::getCacheMaxAge()

@todo Make cacheable once https://www.drupal.org/node/2351015 lands.

Overrides ContextAwarePluginTrait::getCacheMaxAge

File

core/modules/system/tests/modules/form_test/src/Plugin/Block/RedirectFormBlock.php, line 72

Class

RedirectFormBlock
Provides a block containing a simple redirect form.

Namespace

Drupal\form_test\Plugin\Block

Code

public function getCacheMaxAge() {
    return 0;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.