You are here

TextExtractorPluginInterface.php in Search API attachments 9.0.x

Same filename and directory in other branches
  1. 8 src/TextExtractorPluginInterface.php

File

src/TextExtractorPluginInterface.php
View source
<?php

namespace Drupal\search_api_attachments;

use Drupal\Core\Plugin\PluginFormInterface;
use Drupal\Component\Plugin\ConfigurableInterface;
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);

}

Interfaces

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