public function SiteNameProperty::defaultConfiguration in Search API Field Map 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/search_api/processor/Property/SiteNameProperty.php \Drupal\search_api_field_map\Plugin\search_api\processor\Property\SiteNameProperty::defaultConfiguration()
- 8 src/Plugin/search_api/processor/Property/SiteNameProperty.php \Drupal\search_api_field_map\Plugin\search_api\processor\Property\SiteNameProperty::defaultConfiguration()
- 4.x src/Plugin/search_api/processor/Property/SiteNameProperty.php \Drupal\search_api_field_map\Plugin\search_api\processor\Property\SiteNameProperty::defaultConfiguration()
Gets the default configuration for this property.
Return value
array An associative array with the default configuration.
Overrides ConfigurablePropertyBase::defaultConfiguration
File
- src/
Plugin/ search_api/ processor/ Property/ SiteNameProperty.php, line 24
Class
- SiteNameProperty
- Defines a "site name" property.
Namespace
Drupal\search_api_field_map\Plugin\search_api\processor\PropertyCode
public function defaultConfiguration() {
return [
'site_name' => [
\Drupal::config('system.site')
->get('name'),
],
];
}