You are here

public function GroupRelationBase::getGroupOperationsCacheableMetadata in Group 2.0.x

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 GroupRelationInterface::getGroupOperationsCacheableMetadata

See also

::getGroupOperations()

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

File

src/Plugin/Group/Relation/GroupRelationBase.php, line 202

Class

GroupRelationBase
Provides a base class for GroupContentEnabler plugins.

Namespace

Drupal\group\Plugin\Group\Relation

Code

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