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

Breadcrumb

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

function Role::getCacheMaxAge

Overrides CacheableDependencyInterface::getCacheMaxAge

File

core/modules/user/src/Plugin/views/access/Role.php, line 148

Class

Role
Access plugin that provides role-based access control.

Namespace

Drupal\user\Plugin\views\access

Code

public function getCacheMaxAge() {
    return Cache::PERMANENT;
}
RSS feed
Powered by Drupal