- Issue created by @joachim
The code in SearchInTextFields to get the possible terms for a term reference field checks the entity reference handler:
// Term references can either use the "default" handler, which assigns a list
// of vocabularies to reference or a "views" handler which uses Views to
// make the list of terms. These need to be handled differently.
However, other handlers could exist!
And in both cases that are handled, the code is poking around in internals which is brittle.
Use OptionsProviderInterface::getPossibleValues() to get the terms.
Active
1.0
Code