You are here

public function GroupMembership::getCacheMaxAge in Group 8

Same name and namespace in other branches
  1. 2.0.x src/GroupMembership.php \Drupal\group\GroupMembership::getCacheMaxAge()

The maximum age for which this object may be cached.

Return value

int The maximum time in seconds that this object may be cached.

Overrides CacheableDependencyInterface::getCacheMaxAge

File

src/GroupMembership.php, line 111

Class

GroupMembership
Wrapper class for a GroupContent entity representing a membership.

Namespace

Drupal\group

Code

public function getCacheMaxAge() {
  return $this
    ->getGroupContent()
    ->getCacheMaxAge();
}