public function BackendPluginBase::__construct in Search API 8
Constructs a \Drupal\Component\Plugin\PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides ConfigurablePluginBase::__construct
1 call to BackendPluginBase::__construct()
- Database::__construct in modules/
search_api_db/ src/ Plugin/ search_api/ backend/ Database.php - Constructs a Database object.
1 method overrides BackendPluginBase::__construct()
- Database::__construct in modules/
search_api_db/ src/ Plugin/ search_api/ backend/ Database.php - Constructs a Database object.
File
- src/
Backend/ BackendPluginBase.php, line 81
Class
- BackendPluginBase
- Defines a base class for backend plugins.
Namespace
Drupal\search_api\BackendCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition) {
if (($configuration['#server'] ?? NULL) instanceof ServerInterface) {
$this
->setServer($configuration['#server']);
unset($configuration['#server']);
}
parent::__construct($configuration, $plugin_id, $plugin_definition);
}