function TestCacheableDependency::__construct
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php \Drupal\Tests\Core\Render\TestCacheableDependency::__construct()
- 10 core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php \Drupal\Tests\Core\Render\TestCacheableDependency::__construct()
- 11.x core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php \Drupal\Tests\Core\Render\TestCacheableDependency::__construct()
File
-
core/
tests/ Drupal/ Tests/ Core/ Render/ TestCacheableDependency.php, line 16
Class
- TestCacheableDependency
- Cacheable dependency object for use in tests.
Namespace
Drupal\Tests\Core\RenderCode
public function __construct(array $contexts, array $tags, $max_age) {
$this->contexts = $contexts;
$this->tags = $tags;
$this->maxAge = $max_age;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.