Преглед на файлове

Load the Field class into scope

dsenalik преди 4 години
родител
ревизия
e5825f0b90
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      tripal_chado/includes/TripalFields/sbo__relationship/sbo__relationship_formatter.inc

+ 3 - 0
tripal_chado/includes/TripalFields/sbo__relationship/sbo__relationship_formatter.inc

@@ -59,6 +59,9 @@ class sbo__relationship_formatter extends ChadoFieldFormatter {
    */
   public function view(&$element, $entity_type, $entity, $langcode, $items, $display) {
 
+    // Load the Field class into scope for use below.
+    tripal_load_include_field_class('sbo__relationship');
+
     // Get the settings
     $settings = $display['settings'];
     $rows = [];