You are here

abstract protected function AbstractBaseController::renderRecursive in Render cache 7.2

Renders uncached objects in a recursion compatible way.

The default implementation is dumb and expensive performance wise, as it calls the render() method for each object seperately.

Controllers that support recursions should implement the RecursionControllerInterface and subclass from BaseRecursionController.

Parameters

object[] $objects: Array of $objects to be rendered keyed by id.

Return value

array[] Render array keyed by id.

See also

\Drupal\render_cache\RenderCache\Controller\RecursionControllerInterface

\Drupal\render_cache\RenderCache\Controller\BaseRecursionController

1 method overrides AbstractBaseController::renderRecursive()
BaseController::renderRecursive in src/RenderCache/Controller/BaseController.php
Renders uncached objects in a recursion compatible way.

File

src/RenderCache/Controller/AbstractBaseController.php, line 119
Contains \Drupal\render_cache\RenderCache\Controller\AbstractBaseController

Class

AbstractBaseController
Controller abstract base class.

Namespace

Drupal\render_cache\RenderCache\Controller

Code

protected abstract function renderRecursive(array $objects);