You are here

public function ReportEditor::foreachLinks in Forena Reports 8

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

Add foreach section links to blocks.

Parameters

string $block_name:

string $id:

string $context:

Return value

string

File

src/Editor/ReportEditor.php, line 1044
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 foreachLinks($block_name, $id = '', $context = '') {
  $o = '';
  $report_name = $this->report_name;

  // Add the block or ID link
  $o .= '<div class="forena-edit-links">' . $this
    ->l_icon("reports/{$report_name}/edit/select-data/add-data/{$id}", 'plus.svg', 'Add Detail', null, t("Data")) . "</div>";
  return $o;
}