You are here

public function DrupalTableExporter::compile in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 includes/DrupalTableExporter.php \AKlump\LoftDataGrids\DrupalTableExporter::compile()

Build the string content of $this->output and return $this for chaining.

Parameters

mixed $page_id: (Optional) Defaults to NULL. Set this to only compile a single page.

Return value

$this

Overrides ExporterInterface::compile

File

src/AKlump/LoftDataGrids/DrupalTableExporter.php, line 24

Class

DrupalTableExporter
Class DrupalTableExporter

Namespace

AKlump\LoftDataGrids

Code

public function compile($page_id = null) {
  $build = $this
    ->build($page_id);
  $this->output = drupal_render($build);
  return $this;
}