public function HtmlFilter::defaultConfiguration in Search API 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides FieldsProcessorPluginBase::defaultConfiguration
File
- src/
Plugin/ search_api/ processor/ HtmlFilter.php, line 67
Class
- HtmlFilter
- Strips HTML tags from fulltext fields and decodes HTML entities.
Namespace
Drupal\search_api\Plugin\search_api\processorCode
public function defaultConfiguration() {
$configuration = parent::defaultConfiguration();
$configuration += [
'title' => TRUE,
'alt' => TRUE,
'tags' => [
'h1' => 5,
'h2' => 3,
'h3' => 2,
'strong' => 2,
'b' => 2,
'em' => 1.5,
'u' => 1.5,
],
];
return $configuration;
}