You are here

class SecureLoginCacheableDependency in Secure Login 8

Defines the SecureLoginCacheableDependency.

Hierarchy

Expanded class hierarchy of SecureLoginCacheableDependency

File

src/SecureLoginCacheableDependency.php, line 11

Namespace

Drupal\securelogin
View source
class SecureLoginCacheableDependency implements CacheableDependencyInterface {

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

  /**
   * {@inheritdoc}
   */
  public function getCacheMaxAge() {
    return Cache::PERMANENT;
  }

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

}

Members

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