Skip to content
Snippets Groups Projects
Commit 8dbdbd76 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 0210b3c2
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,11 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta
'#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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment