You are here

public function BaseController::__construct in Render cache 7.2

Constructs a controller plugin object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\render_cache\Cache\RenderStack $render_stack: The render stack.

\Drupal\render_cache\Cache\RenderCacheBackendAdapter $cache: The cache backend adapter.

File

src/RenderCache/Controller/BaseController.php, line 58
Contains \Drupal\render_cache\RenderCache\Controller\BaseController

Class

BaseController
Base class for Controller plugin objects.

Namespace

Drupal\render_cache\RenderCache\Controller

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RenderStackInterface $render_stack, RenderCacheBackendAdapterInterface $cache) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->renderStack = $render_stack;
  $this->cache = $cache;
}