public function PluginHelperInterface::createDatasourcePlugin in Search API 8
Creates a datasource plugin object for this index.
Parameters
\Drupal\search_api\IndexInterface $index: The index for which to create the plugin.
string $plugin_id: The plugin's ID.
array $configuration: (optional) The configuration to set for the plugin.
Return value
\Drupal\search_api\Datasource\DatasourceInterface The new datasource plugin object.
Throws
\Drupal\search_api\SearchApiException Thrown if an unknown $type or $plugin_id is given.
1 method overrides PluginHelperInterface::createDatasourcePlugin()
- PluginHelper::createDatasourcePlugin in src/
Utility/ PluginHelper.php - Creates a datasource plugin object for this index.
File
- src/
Utility/ PluginHelperInterface.php, line 28
Class
- PluginHelperInterface
- Provides an interface for the plugin helper service.
Namespace
Drupal\search_api\UtilityCode
public function createDatasourcePlugin(IndexInterface $index, $plugin_id, array $configuration = []);