By drunken monkey on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x-1.x
Introduced in version:
8.x-1.31
Description:
The constructor of \Drupal\search_api\Utility\FieldsHelper now expects the search_api.theme_switcher service as its fifth parameter.
(Note that you should normally never need to construct an object of this class manually. Retrieve the search_api.fields_helper service instead.)
Before:
$fields_helper = new FieldsHelper(
\Drupal::service('entity_type.manager'),
\Drupal::service('entity_field.manager'),
\Drupal::service('entity_type.bundle.info'),
\Drupal::service('search_api.data_type_helper'),
);
After:
$fields_helper = new FieldsHelper(
\Drupal::service('entity_type.manager'),
\Drupal::service('entity_field.manager'),
\Drupal::service('entity_type.bundle.info'),
\Drupal::service('search_api.data_type_helper'),
\Drupal::service('search_api.theme_switcher'),
);
Impacts:
Module developers