Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Permission.php

function Permission::getCacheMaxAge

Overrides CacheableDependencyInterface::getCacheMaxAge

File

core/modules/user/src/Plugin/views/access/Permission.php, line 144

Class

Permission
Access plugin that provides permission-based access control.

Namespace

Drupal\user\Plugin\views\access

Code

public function getCacheMaxAge() {
    return Cache::PERMANENT;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal