You are here

public function Formatter::expression in Forena Reports 8

Parameters

$value:

$format_string:

ReportReplacer $teng:

Return value

mixed Return an xapth expression based on data in the

File

src/FrxPlugin/FieldFormatter/Formatter.php, line 247
contains various methods for extending report formating, layout, transformation and design.

Class

Formatter
Formatter for common drupal fields.

Namespace

Drupal\forena\FrxPlugin\FieldFormatter

Code

public function expression($value, $format_string, $teng) {
  if ($value) {
    $value = $teng
      ->replace($format_string);
    if ($value) {
      $value = $teng
        ->replace('{' . $value . '}');
    }
  }
  return $value;
}