public static function SuggestionStorage::getSrcOptions in Autocomplete Search Suggestions 3.0.x
Same name and namespace in other branches
- 8.2 src/SuggestionStorage.php \Drupal\suggestion\SuggestionStorage::getSrcOptions()
- 8 src/SuggestionStorage.php \Drupal\suggestion\SuggestionStorage::getSrcOptions()
Build an array of source options.
Return value
array An array of source options.
3 calls to SuggestionStorage::getSrcOptions()
- SuggestionEditForm::buildForm in src/
Form/ SuggestionEditForm.php - The suggestion edit form.
- SuggestionHelper::srcBits in src/
SuggestionHelper.php - Build an array of defalut options from bitmaps.
- SuggestionSearchForm::buildForm in src/
Form/ SuggestionSearchForm.php - The suggestion search form.
File
- src/
SuggestionStorage.php, line 182
Class
- SuggestionStorage
- Database CRUD.
Namespace
Drupal\suggestionCode
public static function getSrcOptions() {
return [
self::DISABLED_BIT => t('Disabled'),
self::CONTENT_BIT => t('Content'),
self::SURFER_BIT => t('Surfer'),
self::PRIORITY_BIT => t('Priority'),
];
}