protected function SearchApiExcludeEntityFormatter::getOutputFormats in Search API Exclude Entity 8
Gets the available format options.
Return value
array|string A list of output formats. Each entry is keyed by the machine name of the format. The value is an array, of which the first item is the result for boolean TRUE, the second is for boolean FALSE. The value can be also an array, but this is just the case for the custom format.
Overrides BooleanFormatter::getOutputFormats
File
- src/
Plugin/ Field/ FieldFormatter/ SearchApiExcludeEntityFormatter.php, line 33
Class
- SearchApiExcludeEntityFormatter
- Plugin implementation of the 'search_api_exclude_entity_formatter' formatter.
Namespace
Drupal\search_api_exclude_entity\Plugin\Field\FieldFormatterCode
protected function getOutputFormats() {
$formats = parent::getOutputFormats();
unset($formats['default']);
return $formats;
}