RenderCache::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Render/RenderCache.php, line 26 Class RenderCache Wraps the caching logic for the render caching system. Namespace Drupal\Core\Render Code protected $requestStack;

RenderCache::$cacheFactory

The cache factory. Type: \Drupal\Core\Cache\CacheFactoryInterface File core/lib/Drupal/Core/Render/RenderCache.php, line 33 Class RenderCache Wraps the caching logic for the render caching system. Namespace Drupal\Core\Render Code protected $cacheFactory;

RenderCache::$cacheContextsManager

The cache contexts manager. Type: \Drupal\Core\Cache\Context\CacheContextsManager File core/lib/Drupal/Core/Render/RenderCache.php, line 40 Class RenderCache Wraps the caching logic for the render caching system. Namespace Drupal\Core\Render Code protected $cacheContextsManager;

RenderCache

Wraps the caching logic for the render caching system. @internal @todo Refactor this out into a generic service capable of cache redirects, and let RenderCache use that. https://www.drupal.org/node/2551419 Hierarchy class \Drupal\Core\Render\RenderCache implements RenderCacheInterface File core/lib/Drupal/Core/Render/RenderCache.php, line 19 Namespace Drupal\Core\Render Members Name Modifiers Type Description RenderCache::$cacheContextsManager protected property The cach

RenderableInterface::toRenderable

public RenderableInterface::toRenderable() Returns a render array representation of the object. Return value mixed[] A render array. File core/lib/Drupal/Core/Render/RenderableInterface.php, line 16 Class RenderableInterface Defines an object which can be rendered by the Render API. Namespace Drupal\Core\Render Code public function toRenderable();

RenderableInterface

Defines an object which can be rendered by the Render API. Hierarchy interface \Drupal\Core\Render\RenderableInterface File core/lib/Drupal/Core/Render/RenderableInterface.php, line 8 Namespace Drupal\Core\Render Members Name Modifiers Type Description RenderableInterface::toRenderable public function Returns a render array representation of the object.

Render API overview

Overview of the Theme system and Render API. The main purpose of Drupal's Theme system is to give themes complete control over the appearance of the site, which includes the markup returned from HTTP requests and the CSS files used to style that markup. In order to ensure that a theme can completely customize the markup, module developers should avoid directly writing HTML markup for pages, blocks, and other user-visible output in their modules, and instead return structured "render arrays" (se

render

render(&$element) Renders an element. This function renders an element. The top level element is shown with show() before rendering, so it will always be rendered even if hide() had been previously used on it. Parameters $element: The element to be rendered. Return value The rendered element. See also \Drupal\Core\Render\RendererInterface show() hide() File core/includes/common.inc, line 922 Common functions that many Drupal modules will need to reference. Code function render(&$el

RemoveCommand::__construct

public RemoveCommand::__construct($selector) Constructs a RemoveCommand object. Parameters string $selector: File core/lib/Drupal/Core/Ajax/RemoveCommand.php, line 33 Class RemoveCommand AJAX command for calling the jQuery remove() method. Namespace Drupal\Core\Ajax Code public function __construct($selector) { $this->selector = $selector; }

RemoveCommand::render

public RemoveCommand::render() Implements Drupal\Core\Ajax\CommandInterface:render(). Overrides CommandInterface::render File core/lib/Drupal/Core/Ajax/RemoveCommand.php, line 40 Class RemoveCommand AJAX command for calling the jQuery remove() method. Namespace Drupal\Core\Ajax Code public function render() { return array( 'command' => 'remove', 'selector' => $this->selector, ); }