You are here

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

See also

::getGroupOperations()

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

File

src/Plugin/GroupContentEnablerInterface.php, line 210

Class

GroupContentEnablerInterface
Defines an interface for pluggable GroupContentEnabler back-ends.

Namespace

Drupal\group\Plugin

Code

public function getGroupOperationsCacheableMetadata();