Issue #2412553 by amateescu: Taxonomy terms in an Entity Reference field are not sorted

8.0.x
Alex Pott 2015-03-23 13:03:48 +00:00
parent 0210b3c2bd
commit 8dbdbd76ef
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ class TermSelection extends SelectionBase {
'#title' => $this->t("Create referenced entities if they don't already exist"),
'#default_value' => isset($this->configuration['handler_settings']['auto_create']) ? $this->configuration['handler_settings']['auto_create'] : FALSE,
);
// Sorting is not possible for taxonomy terms because we use
// \Drupal\taxonomy\TermStorageInterface::loadTree() to retrieve matches.
$form['sort']['#access'] = FALSE;
return $form;
}