public function SearchApiCombinedEntityDataSourceController::getConfigurationSummary in Search API 7
Returns a summary of an index's current datasource configuration.
Parameters
SearchApiIndex $index: The index whose datasource configuration should be summarized.
Return value
string|null A translated string describing the index's current datasource configuration. Or NULL, if there is no configuration (or no description is available).
Overrides SearchApiAbstractDataSourceController::getConfigurationSummary
File
- includes/
datasource_multiple.inc, line 281 - Contains SearchApiCombinedEntityDataSourceController.
Class
- SearchApiCombinedEntityDataSourceController
- Provides a datasource for indexing multiple types of entities.
Code
public function getConfigurationSummary(SearchApiIndex $index) {
if ($type_labels = $this
->getSelectedEntityTypeOptions($index)) {
$args['!types'] = implode(', ', $type_labels);
return format_plural(count($type_labels), 'Indexed entity types: !types.', 'Indexed entity types: !types.', $args);
}
return NULL;
}