You are here

public function GroupContentEnablerBase::getGroupOperationsCacheableMetadata in Group 8

Provides the cacheable metadata for this plugin's group operations.

The operations set in ::getGroupOperations() may have some cacheable metadata that needs to be set but can't be because the links set in an Operations render element are simple associative arrays. This method allows you to specify the cacheable metadata regardless.

Return value

\Drupal\Core\Cache\CacheableMetadata The cacheable metadata for the group operations.

Overrides GroupContentEnablerInterface::getGroupOperationsCacheableMetadata

See also

::getGroupOperations()

1 method overrides GroupContentEnablerBase::getGroupOperationsCacheableMetadata()
GroupMembership::getGroupOperationsCacheableMetadata in src/Plugin/GroupContentEnabler/GroupMembership.php
Provides the cacheable metadata for this plugin's group operations.

File

src/Plugin/GroupContentEnablerBase.php, line 205

Class

GroupContentEnablerBase
Provides a base class for GroupContentEnabler plugins.

Namespace

Drupal\group\Plugin

Code

public function getGroupOperationsCacheableMetadata() {
  return new CacheableMetadata();
}