public function TikaExtractor::submitConfigurationForm in Search API attachments 8
Same name and namespace in other branches
- 9.0.x src/Plugin/search_api_attachments/TikaExtractor.php \Drupal\search_api_attachments\Plugin\search_api_attachments\TikaExtractor::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 TextExtractorPluginBase::submitConfigurationForm
File
- src/
Plugin/ search_api_attachments/ TikaExtractor.php, line 123
Class
- TikaExtractor
- Provides tika extractor.
Namespace
Drupal\search_api_attachments\Plugin\search_api_attachmentsCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this->configuration['java_path'] = $form_state
->getValue([
'text_extractor_config',
'java_path',
]);
$this->configuration['tika_path'] = $form_state
->getValue([
'text_extractor_config',
'tika_path',
]);
parent::submitConfigurationForm($form, $form_state);
}