ViewUI::mergeCacheMaxAge

public ViewUI::mergeCacheMaxAge($max_age)

Merges the maximum age (in seconds) with the existing maximum age.

The max age will be set to the given value if it is lower than the existing value.

Parameters

int $max_age: The max age to associate.

Return value

$this

Throws

\InvalidArgumentException Thrown if a non-integer value is supplied.

Overrides RefinableCacheableDependencyInterface::mergeCacheMaxAge

File

core/modules/views_ui/src/ViewUI.php, line 1333

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function mergeCacheMaxAge($max_age) {
  return $this->storage->mergeCacheMaxAge($max_age);
}
doc_Drupal
2016-10-29 09:56:02
Comments
Leave a Comment

Please login to continue.