You are here

public function TextExtractorPluginInterface::extract in Search API attachments 9.0.x

Same name and namespace in other branches
  1. 8 src/TextExtractorPluginInterface.php \Drupal\search_api_attachments\TextExtractorPluginInterface::extract()

Extract method.

Parameters

\Drupal\file\Entity\File $file: The file object.

Return value

string The file extracted content.

1 method overrides TextExtractorPluginInterface::extract()
TextExtractorPluginBase::extract in src/TextExtractorPluginBase.php
Extract method.

File

src/TextExtractorPluginInterface.php, line 25

Class

TextExtractorPluginInterface
Provides an interface for a plugin that extracts files content.

Namespace

Drupal\search_api_attachments

Code

public function extract(File $file);