You are here

public function AjaxPageControllerBase::render in Forena Reports 8

Parameters

string $section: The location where the content should go.

string|array $content: The content to replace.

File

src/Controller/AjaxPageControllerBase.php, line 358

Class

AjaxPageControllerBase

Namespace

Drupal\forena\Controller

Code

public function render($section, $content) {
  if ($this->jsMode != 'nojs' && $this->jsMode != 'drupal_modal') {
    $this->commands[] = new HtmlCommand('#' . $section, $content);
  }
  else {
    $this->build[$section] = $content;
  }
}