Change record status: 
Project: 
Introduced in branch: 
8.x-1.x
Introduced in version: 
8.x-1.17
Description: 

Search API previously provided several theme functions to modify certain specialized parts of its administrative UI:

  • theme_search_api_admin_fields_table
  • theme_search_api_admin_data_type_table
  • theme_search_api_form_item_list
  • theme_search_api_server
  • theme_search_api_index

Because Drupal 8.9 and 9 have deprecated the concept of theme functions, these have all been converted into Twig templates that you can override in your own theme:

  • search-api-admin-fields-table.html.twig
  • search-api-admin-data-type-table.html.twig
  • search-api-form-item-list.html.twig
  • search-api-server.html.twig
  • search-api-index.html.twig

Most of the code that was previously in the theme functions has been moved into preprocess functions:

  • template_preprocess_search_api_admin_fields_table
  • template_preprocess_search_api_admin_data_type_table
  • template_preprocess_search_api_form_item_list
  • template_preprocess_search_api_server
  • template_preprocess_search_api_index
Impacts: 
Themers