public static function RenderCache::getRenderStrategy in Render cache 7.2
Returns a render cache render strategy plugin.
Parameters
string $type: The type of the render strategy plugin, e.g. big_pipe, esi_validate, ...
Return value
\Drupal\render_cache\RenderCache\RenderStrategy\RenderStrategyInterface|NULL The instantiated render strategy with the given type or NULL.
1 call to RenderCache::getRenderStrategy()
- render_cache_get_renderer in ./
render_cache.module - Returns a render cache render strategy plugin.
File
- lib/
RenderCache.php, line 119 - Contains RenderCache
Class
- RenderCache
- Static Service Container wrapper wrapping Drupal class.
Code
public static function getRenderStrategy($type) {
return static::$container
->get('render_cache.render_strategy')
->createInstance($type);
}