The standard render for a Layout display object.

Given a fully-loaded Layout object, this class will turn its combination of layout, blocks, and styles into HTML, invoking caching appropriately along the way. Interacting with the renderer externally is very simple - just pass it the display object and call the render() method:

  // Given that $layout is a fully loaded Layout object.
  $renderer = layout_get_renderer('standard', $layout)
  $html_output = $renderer->render();

Hierarchy

Expanded class hierarchy of LayoutRendererStandard

File

modules/layout/plugins/renderers/layout_renderer_standard.inc, line 17

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
LayoutRendererStandard::$page_title protected property The title that should be displayed on the page.
LayoutRendererStandard::addCss function Add CSS information to the renderer.
LayoutRendererStandard::addLibrary function Add Library information to the renderer.
LayoutRendererStandard::addMeta function Attach out-of-band page metadata (e.g., CSS and JS).
LayoutRendererStandard::__construct function Construct the object that will be used to render the layout.
LayoutRendererStandard::ensurePageContentBlock function Ensure that the page content block is included in the default region.
LayoutRendererStandard::prepare function Prepare the attached display for rendering.
LayoutRendererStandard::prepareBlocks function Prepare the list of blocks to be rendered, accounting for visibility/access settings and rendering order.
LayoutRendererStandard::prepareRegions function Prepare the list of regions to be rendered.
LayoutRendererStandard::render function Render the entire layout and attach meta data.
LayoutRendererStandard::renderBlock function Render a block using its designated style.
LayoutRendererStandard::renderBlocks function Render all prepared blocks, first by dispatching to their plugin's render callback, then handing that output off to the block's style plugin.
LayoutRendererStandard::renderLayout function Perform display/layout-level render operations.
LayoutRendererStandard::renderRegion function Render a single layout region.
LayoutRendererStandard::renderRegions function Render all prepared regions, placing already-rendered blocks into their appropriate positions therein.