Issue #2412553 by amateescu: Taxonomy terms in an Entity Reference field are not sorted
parent
0210b3c2bd
commit
8dbdbd76ef
|
@ -46,6 +46,11 @@ class TermSelection extends SelectionBase {
|
||||||
'#title' => $this->t("Create referenced entities if they don't already exist"),
|
'#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,
|
'#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;
|
return $form;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue