diff --git a/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php b/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php index 61281fb992c..2a3c4adf05f 100644 --- a/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php +++ b/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php @@ -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; }