You are here

public function GroupRelationInterface::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.

See also

::getGroupOperations()

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

File

src/Plugin/Group/Relation/GroupRelationInterface.php, line 209

Class

GroupRelationInterface
Defines an interface for pluggable GroupRelation back-ends.

Namespace

Drupal\group\Plugin\Group\Relation

Code

public function getGroupOperationsCacheableMetadata();