search_api_attachments-8.x-1.0-beta16/src/TextExtractorPluginInterface.php
src/TextExtractorPluginInterface.php
<?php
namespace Drupal\search_api_attachments;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Core\Plugin\PluginFormInterface;
use Drupal\file\Entity\File;
/**
* Provides an interface for a plugin that extracts files content.
*
* @ingroup plugin_api
*/
interface TextExtractorPluginInterface extends PluginFormInterface, ConfigurableInterface {
/**
* Extract method.
*
* @param \Drupal\file\Entity\File $file
* The file object.
*
* @return string
* The file extracted content.
*/
public function extract(File $file);
}
