You are here

class CacheableTestDomainObject in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/early_rendering_controller_test/src/CacheableTestDomainObject.php \Drupal\early_rendering_controller_test\CacheableTestDomainObject

Hierarchy

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_test
View source
class CacheableTestDomainObject extends TestDomainObject implements CacheableDependencyInterface {

  /**
   * {@inheritdoc}
   */
  public function getCacheContexts() {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  public function getCacheTags() {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  public function getCacheMaxAge() {
    return 0;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CacheableTestDomainObject::getCacheContexts public function The cache contexts associated with this object. Overrides CacheableDependencyInterface::getCacheContexts
CacheableTestDomainObject::getCacheMaxAge public function The maximum age for which this object may be cached. Overrides CacheableDependencyInterface::getCacheMaxAge
CacheableTestDomainObject::getCacheTags public function The cache tags associated with this object. Overrides CacheableDependencyInterface::getCacheTags