You are here

public function dsDisplay::getLayout in Display Suite 6.3

Load a layout from hook_ds_layouts, and assign region variables

Parameters

string $layout: (optional) A layout to load. As most of ds currently doesnt support configurable layouts, this defaults to the standard layout when none is provided.

1 call to dsDisplay::getLayout()
dsDisplay::render in includes/dsDisplay.php
Render content

File

includes/dsDisplay.php, line 398
Class definition for a Display Suite Display object

Class

dsDisplay
The Display Suite Display object

Code

public function getLayout($layout = DS_DEFAULT_LAYOUT) {
  $this->layout = ds_get_layout($layout);
  $this->layout['#key'] = $layout;
  foreach ($this->layout['regions'] as $name => $info) {
    $this->regions[$name] = $info;

    // All regions are disabled initially
    $this
      ->regionHide($name);
  }
}