Skip to content
Snippets Groups Projects
Commit 1545562a authored by Emil Stjerneman's avatar Emil Stjerneman
Browse files

Fixed #2116273: Fatal error: Class 'LinkitSearchPluginEntity' during Drupal Installation.

parent 65d144a0
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,12 @@ function linkit_entity_ctools_linkit_get_children($plugin, $parent) {
// Test the plugins.
foreach ($plugins as $plugin_name => $plugin) {
// In some cases the plugins isn't auto loaded. Ctools handle this for us.
// This is typical when installing Linkit.
if (!class_exists($plugin['handler']['class'])) {
continue;
}
$tested_plugin = new $plugin['handler']['class']($plugin, new LinkitProfile());
if (isset($tested_plugin->unusable) && $tested_plugin->unusable) {
unset($plugins[$plugin_name]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment