You are here

SecureLoginCacheableDependency.php in Secure Login 8

Namespace

Drupal\securelogin

File

src/SecureLoginCacheableDependency.php
View source
<?php

namespace Drupal\securelogin;

use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\CacheableDependencyInterface;

/**
 * Defines the SecureLoginCacheableDependency.
 */
class SecureLoginCacheableDependency implements CacheableDependencyInterface {

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

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

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

}

Classes

Namesort descending Description
SecureLoginCacheableDependency Defines the SecureLoginCacheableDependency.