class CacheableTestDomainObject in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/early_rendering_controller_test/src/CacheableTestDomainObject.php \Drupal\early_rendering_controller_test\CacheableTestDomainObject
Hierarchy
- class \Drupal\early_rendering_controller_test\TestDomainObject
- class \Drupal\early_rendering_controller_test\CacheableTestDomainObject implements CacheableDependencyInterface
Expanded class hierarchy of CacheableTestDomainObject
2 string references to 'CacheableTestDomainObject'
- EarlyRenderingControllerTest::testEarlyRendering in core/
modules/ system/ src/ Tests/ Common/ EarlyRenderingControllerTest.php - Tests theme preprocess functions being able to attach assets.
- TestDomainObjectViewSubscriber::onViewTestDomainObject in core/
modules/ system/ tests/ modules/ early_rendering_controller_test/ src/ TestDomainObjectViewSubscriber.php - Sets a response given a TestDomainObject instance.
File
- core/
modules/ system/ tests/ modules/ early_rendering_controller_test/ src/ CacheableTestDomainObject.php, line 12 - Contains \Drupal\early_rendering_controller_test\CacheableTestDomainObject.
Namespace
Drupal\early_rendering_controller_testView source
class CacheableTestDomainObject extends TestDomainObject implements CacheableDependencyInterface {
/**
* {@inheritdoc}
*/
public function getCacheContexts() {
return [];
}
/**
* {@inheritdoc}
*/
public function getCacheTags() {
return [];
}
/**
* {@inheritdoc}
*/
public function getCacheMaxAge() {
return 0;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheableTestDomainObject:: |
public | function |
The cache contexts associated with this object. Overrides CacheableDependencyInterface:: |
|
CacheableTestDomainObject:: |
public | function |
The maximum age for which this object may be cached. Overrides CacheableDependencyInterface:: |
|
CacheableTestDomainObject:: |
public | function |
The cache tags associated with this object. Overrides CacheableDependencyInterface:: |