123456789101112131415161718192021222324 |
- <?php
- class sio__vocabulary_formatter extends ChadoFieldFormatter {
-
- public static $default_label = 'Vocabulary';
-
- public static $field_types = ['sio__vocabulary'];
-
- public function view(&$element, $entity_type, $entity, $langcode, $items, $display) {
- if (count($items) > 0) {
-
-
- $element[0] = [
- '#type' => 'markup',
- '#markup' => $items[0]['value'],
- ];
- }
- }
- }
|