public function data__accession_formatter::view
3.x data__accession_formatter.inc | public data__accession_formatter::view(&$element, $entity_type, $entity, $langcode, $items, $display) |
Overrides TripalFieldFormatter::view
See also
File
- tripal_chado/
includes/ TripalFields/ data__accession/ data__accession_formatter.inc, line 14
Class
Code
public function view(&$element, $entity_type, $entity, $langcode, $items, $display) {
$content = '';
if ($items[0]['value']) {
$content = $items[0]['value'];
}
$element[0] = array(
// We create a render array to produce the desired markup,
'#type' => 'markup',
'#markup' => $content,
);
}