3 namespace Drupal\search_api_synonym\Export;
5 use Drupal\Core\Plugin\PluginFormInterface;
6 use Drupal\Component\Plugin\ConfigurablePluginInterface;
9 * Provides an interface for search api synonym export plugins.
13 interface ExportPluginInterface extends PluginFormInterface, ConfigurablePluginInterface {
16 * Get synonyms in the export format.
18 * @param array $synonyms
19 * An array containing synonym objects.
22 * The formatted synonyms as a string ready to be saved to an export file.
24 public function getFormattedSynonyms(array $synonyms);