You are here

public function TestCacheableDependency::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php \Drupal\Tests\Core\Render\TestCacheableDependency::__construct()

File

core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php, line 17
Contains \Drupal\Tests\Core\Render\TestCacheableDependency.

Class

TestCacheableDependency
Cacheable dependency object for use in tests.

Namespace

Drupal\Tests\Core\Render

Code

public function __construct(array $contexts, array $tags, $max_age) {
  $this->contexts = $contexts;
  $this->tags = $tags;
  $this->maxAge = $max_age;
}