You are here

public function Formatter::formats in Forena Reports 8

List formats provided by this class.

Return value

array

Overrides FormatterInterface::formats

File

src/FrxPlugin/FieldFormatter/Formatter.php, line 27
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 formats() {
  $formats = array(
    'drupal_date_format' => 'Drupal Date',
    'xhtml' => 'XHTML Decode of data',
    'drupal_text_format' => 'Drupal Text Format',
    'iso_date' => 'ISO Date',
    'sprintf' => 'Sprintf() function',
    'number' => 'Number',
    'drupal_translation' => 'Translation Text (Drupal)',
    'template' => 'Template (Field is a forena)',
    'indentation' => 'Indentation',
    'expression' => 'Expression (xpath)',
  );
  return $formats;
}