Skip to content
Snippets Groups Projects
Commit aad748f9 authored by Marcus Johansson's avatar Marcus Johansson
Browse files

Issue #3474442 by marcus_johansson: Latest dev build gives haystack error

parent 0aca34b8
No related branches found
No related tags found
No related merge requests found
Pipeline #285088 failed
......@@ -186,7 +186,8 @@ class ReferenceFieldExtractor implements ConfigurableFieldTextExtractorInterface
* TRUE to translate referenced entities of this type by default.
*/
protected function entityTypeTranslatedDefault(string $entityTypeId) : bool {
$defaults = $this->config->get('reference_defaults', []);
$defaults = $this->config->get('reference_defaults') ?? [];
// Default is to not translate entities of unknown type.
return (array_search($entityTypeId, $defaults) !== FALSE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment