You are here

public function Formatter::sprintf in Forena Reports 8

File

src/FrxPlugin/FieldFormatter/Formatter.php, line 162
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 sprintf($value, $format_string) {
  if ($value) {
    $value = sprintf($format_string, $value);
  }
  return $value;
}