You are here

function search_api_attachments_update_8002 in Search API attachments 8

Same name and namespace in other branches
  1. 9.0.x search_api_attachments.install \search_api_attachments_update_8002()

Add configuration for tika_server_extractor.

File

./search_api_attachments.install, line 29
Install and update functions for the search_api_attachments module.

Code

function search_api_attachments_update_8002() {
  \Drupal::configFactory()
    ->getEditable('search_api_attachments.admin_config')
    ->set('tika_server_extractor_configuration.scheme', 'http')
    ->set('tika_server_extractor_configuration.host', 'localhost')
    ->set('tika_server_extractor_configuration.port', '9998')
    ->set('tika_server_extractor_configuration.timeout', '5')
    ->save();
}