public function ConfigurablePluginBase::setConfiguration in Search API 8
Sets the configuration for this plugin instance.
Parameters
array $configuration: An associative array containing the plugin's configuration.
Overrides ConfigurableInterface::setConfiguration
10 calls to ConfigurablePluginBase::setConfiguration()
- BackendPluginBase::setConfiguration in src/
Backend/ BackendPluginBase.php - Sets the configuration for this plugin instance.
- ContentEntity::submitConfigurationForm in src/
Plugin/ search_api/ datasource/ ContentEntity.php - Form submission handler.
- Highlight::submitConfigurationForm in src/
Plugin/ search_api/ processor/ Highlight.php - Form submission handler.
- IgnoreCharacters::submitConfigurationForm in src/
Plugin/ search_api/ processor/ IgnoreCharacters.php - Form submission handler.
- NumberFieldBoost::submitConfigurationForm in src/
Plugin/ search_api/ processor/ NumberFieldBoost.php - Form submission handler.
3 methods override ConfigurablePluginBase::setConfiguration()
- BackendPluginBase::setConfiguration in src/
Backend/ BackendPluginBase.php - Sets the configuration for this plugin instance.
- Stopwords::setConfiguration in src/
Plugin/ search_api/ processor/ Stopwords.php - Sets the configuration for this plugin instance.
- Tokenizer::setConfiguration in src/
Plugin/ search_api/ processor/ Tokenizer.php - Sets the configuration for this plugin instance.
File
- src/
Plugin/ ConfigurablePluginBase.php, line 81
Class
- ConfigurablePluginBase
- Provides a base class for all configurable Search API plugins.
Namespace
Drupal\search_api\PluginCode
public function setConfiguration(array $configuration) {
$this->configuration = $configuration + $this
->defaultConfiguration();
}