You are here

public function YamlFormBlock::getCacheMaxAge in YAML Form 8

The maximum age for which this object may be cached.

Return value

int The maximum time in seconds that this object may be cached.

Overrides ContextAwarePluginBase::getCacheMaxAge

File

src/Plugin/Block/YamlFormBlock.php, line 132

Class

YamlFormBlock
Provides a 'Form' block.

Namespace

Drupal\yamlform\Plugin\Block

Code

public function getCacheMaxAge() {

  // Caching strategy is handled by the form.
  return 0;
}