You are here

interface TextExtractorPluginInterface in Search API attachments 8

Same name and namespace in other branches
  1. 9.0.x src/TextExtractorPluginInterface.php \Drupal\search_api_attachments\TextExtractorPluginInterface

Provides an interface for a plugin that extracts files content.

Hierarchy

Expanded class hierarchy of TextExtractorPluginInterface

All classes that implement TextExtractorPluginInterface

1 file declares its use of TextExtractorPluginInterface
FilesExtractor.php in src/Plugin/search_api/processor/FilesExtractor.php

File

src/TextExtractorPluginInterface.php, line 14

Namespace

Drupal\search_api_attachments
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 11
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 12
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 12
PluginFormInterface::buildConfigurationForm public function Form constructor. 36
PluginFormInterface::submitConfigurationForm public function Form submission handler. 32
PluginFormInterface::validateConfigurationForm public function Form validation handler. 18
TextExtractorPluginInterface::extract public function Extract method. 1