public static function RenderCache::getValidationStrategy in Render cache 7.2
Returns a render cache validation strategy plugin.
Parameters
string $type: The type of the validation strategy plugin, e.g. cache tags, ttl, ...
Return value
\Drupal\render_cache\RenderCache\ValidationStrategy\ValidationStrategyInterface|NULL The instantiated validation strategy with the given type or NULL.
1 call to RenderCache::getValidationStrategy()
- render_cache_get_validator in ./
render_cache.module - Returns a render cache validation strategy plugin.
File
- lib/
RenderCache.php, line 132 - Contains RenderCache
Class
- RenderCache
- Static Service Container wrapper wrapping Drupal class.
Code
public static function getValidationStrategy($type) {
return static::$container
->get('render_cache.validation_strategy')
->createInstance($type);
}