You are here

public static function RenderCache::getController in Render cache 7.2

Returns a render cache controller plugin.

Parameters

string $type: The type of the controller plugin, e.g. block, entity, ...

Return value

\Drupal\render_cache\RenderCache\Controller\ControllerInterface|NULL The instantiated controller with the given type or NULL.

1 call to RenderCache::getController()
render_cache_get_controller in ./render_cache.module
Returns a render cache controller.

File

lib/RenderCache.php, line 106
Contains RenderCache

Class

RenderCache
Static Service Container wrapper wrapping Drupal class.

Code

public static function getController($type) {
  return static::$container
    ->get('render_cache.controller')
    ->createInstance($type);
}