You are here

function search_api_attachments_update_8001 in Search API attachments 9.0.x

Same name and namespace in other branches
  1. 8 search_api_attachments.install \search_api_attachments_update_8001()

Add path configuration for pdftotext_extractor.

File

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

Code

function search_api_attachments_update_8001() {
  \Drupal::configFactory()
    ->getEditable('search_api_attachments.admin_config')
    ->set('pdftotext_extractor_configuration.pdftotext_path', 'pdftotext')
    ->save();
}