You are here

public function ReportEditor::ensureDocGen in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::ensureDocGen()

Makes sure specific document types are asserted.

File

src/Editor/ReportEditor.php, line 401
ReportEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

Class

ReportEditor

Namespace

Drupal\forena\Editor

Code

public function ensureDocGen($types) {
  $types = array_combine($types, $types);
  $doctypes = $this
    ->getDocgen();
  $doctypes = array_merge($types, $doctypes);
  $this
    ->setDocgen($doctypes);
}