瀏覽代碼

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 = [];