You are here

public function TextExtractorPluginBase::submitConfigurationForm in Search API attachments 8

Same name and namespace in other branches
  1. 9.0.x src/TextExtractorPluginBase.php \Drupal\search_api_attachments\TextExtractorPluginBase::submitConfigurationForm()

Form submission handler.

Parameters

array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().

Overrides PluginFormInterface::submitConfigurationForm

6 calls to TextExtractorPluginBase::submitConfigurationForm()
DocconvExtractor::submitConfigurationForm in src/Plugin/search_api_attachments/DocconvExtractor.php
Form submission handler.
PdftotextExtractor::submitConfigurationForm in src/Plugin/search_api_attachments/PdftotextExtractor.php
Form submission handler.
PythonPdf2txtExtractor::submitConfigurationForm in src/Plugin/search_api_attachments/PythonPdf2txtExtractor.php
Form submission handler.
SolrExtractor::submitConfigurationForm in src/Plugin/search_api_attachments/SolrExtractor.php
Form submission handler.
TikaExtractor::submitConfigurationForm in src/Plugin/search_api_attachments/TikaExtractor.php
Form submission handler.

... See full list

6 methods override TextExtractorPluginBase::submitConfigurationForm()
DocconvExtractor::submitConfigurationForm in src/Plugin/search_api_attachments/DocconvExtractor.php
Form submission handler.
PdftotextExtractor::submitConfigurationForm in src/Plugin/search_api_attachments/PdftotextExtractor.php
Form submission handler.
PythonPdf2txtExtractor::submitConfigurationForm in src/Plugin/search_api_attachments/PythonPdf2txtExtractor.php
Form submission handler.
SolrExtractor::submitConfigurationForm in src/Plugin/search_api_attachments/SolrExtractor.php
Form submission handler.
TikaExtractor::submitConfigurationForm in src/Plugin/search_api_attachments/TikaExtractor.php
Form submission handler.

... See full list

File

src/TextExtractorPluginBase.php, line 117

Class

TextExtractorPluginBase
Base class for plugins able to extract file content.

Namespace

Drupal\search_api_attachments

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $extractor_plugin_id = $form_state
    ->getValue('extraction_method');
  $config = $this->configFactory
    ->getEditable(static::CONFIGNAME);
  $config
    ->set($extractor_plugin_id . '_configuration', $this->configuration);
  $config
    ->save();
}