function AttributeClassDiscovery::getFileCacheSuffix

Same name in other branches
  1. 10 core/lib/Drupal/Component/Plugin/Discovery/AttributeClassDiscovery.php \Drupal\Component\Plugin\Discovery\AttributeClassDiscovery::getFileCacheSuffix()

Gets the file cache suffix.

This method allows classes that extend this class to add additional information to the file cache collection name.

Parameters

string $default_suffix: The default file cache suffix.

Return value

string The file cache suffix.

1 call to AttributeClassDiscovery::getFileCacheSuffix()
AttributeClassDiscovery::__construct in core/lib/Drupal/Component/Plugin/Discovery/AttributeClassDiscovery.php
Constructs a new instance.
1 method overrides AttributeClassDiscovery::getFileCacheSuffix()
AttributeDiscoveryWithAnnotations::getFileCacheSuffix in core/lib/Drupal/Core/Plugin/Discovery/AttributeDiscoveryWithAnnotations.php
Gets the file cache suffix.

File

core/lib/Drupal/Component/Plugin/Discovery/AttributeClassDiscovery.php, line 52

Class

AttributeClassDiscovery
Defines a discovery mechanism to find plugins with attributes.

Namespace

Drupal\Component\Plugin\Discovery

Code

protected function getFileCacheSuffix(string $default_suffix) : string {
    return $default_suffix;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.