You are here

public function UnitIndex::getCacheMaxAge in Booking and Availability Management API 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/ServiceDefinition/UnitIndex.php, line 103
Contains \Drupal\bat_api\Plugin\ServiceDefinition\UnitIndex.php

Class

UnitIndex
Plugin annotation @ServiceDefinition( id = "unit_index", methods = { "GET" }, translatable = true, deriver = "\Drupal\bat_api\Plugin\Deriver\UnitIndex" )

Namespace

Drupal\bat_api\Plugin\ServiceDefinition

Code

public function getCacheMaxAge() {
  return 0;
}