File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,26 @@ class %%INJECTIONCLASS%% extends %%CLASSNAME%%
70
70
return $lib -> getInjectionResults ();
71
71
}
72
72
73
+ /**
74
+ * Get search options formatted for injection mapping usage in datainjection plugin.
75
+ *
76
+ * @return array
77
+ */
73
78
function getOptions($primary_type = '') {
74
- $parent = get_parent_class($this );
75
- $parentclass = new $parent ();
76
- return $parentclass -> getObjectSearchOptions (true );
79
+ $plugin = new Plugin();
80
+ if (! $plugin -> isActivated (' datainjection' )) {
81
+ return [];
82
+ }
83
+
84
+ return PluginDatainjectionCommonInjectionLib::addToSearchOptions(
85
+ Search::getOptions(get_parent_class($this)),
86
+ [
87
+ 'ignore_fields' => PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(
88
+ get_parent_class($this)
89
+ ),
90
+ ],
91
+ $this
92
+ );
77
93
}
78
94
79
95
}
You can’t perform that action at this time.
0 commit comments