public static function LinkitSearchPluginInterface::factory in Linkit 7.3
Search plugin factory method.
Parameters
$plugin: A search plugin object.
LinkitProfile $profile: (optional) A LinkitProfile object.
Return value
An instance of the search plugin class or an instance of the LinkitSearchPluginBroken class.
1 method overrides LinkitSearchPluginInterface::factory()
- LinkitSearchPlugin::factory in includes/
search_plugin.class.php - Implements LinkitSearchPluginInterface::factory().
File
- includes/
search_plugin.class.php, line 27 - Linkit Search plugin interface.
Class
- LinkitSearchPluginInterface
- Defines a common interface for a Linkit search plugin.
Code
public static function factory($plugin, LinkitProfile $profile);