function ViewUI::mergeCacheMaxAge

Same name and namespace in other branches
  1. 8.9.x core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::mergeCacheMaxAge()
  2. 10 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::mergeCacheMaxAge()
  3. 11.x core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::mergeCacheMaxAge()

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

Overrides RefinableCacheableDependencyInterface::mergeCacheMaxAge

File

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

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function mergeCacheMaxAge($max_age) {
    return $this->storage
        ->mergeCacheMaxAge($max_age);
}

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