diff --git a/core/lib/Drupal/Core/Field/FieldTypePluginManager.php b/core/lib/Drupal/Core/Field/FieldTypePluginManager.php index 5a1634c..f56b90a 100644 --- a/core/lib/Drupal/Core/Field/FieldTypePluginManager.php +++ b/core/lib/Drupal/Core/Field/FieldTypePluginManager.php @@ -99,15 +99,12 @@ public function getUiDefinitions() { /** * {@inheritdoc} */ - public function getUiOptions($type = NULL) { + public function getOptions($type = NULL) { if (empty($this->fieldTypeOptions)) { $options = array(); // Gather valid field types. foreach ($this->getUiDefinitions() as $field_type => $definition) { - // Skip field types which should not be added via user interface. - if (empty($definition['no_ui'])) { - $options[$field_type] = $definition['label']; - } + $options[$field_type] = $definition['label']; } asort($options); $this->fieldTypeOptions = $options; diff --git a/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php b/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php index d29c678..768566d 100644 --- a/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php +++ b/core/lib/Drupal/Core/Field/FieldTypePluginManagerInterface.php @@ -57,6 +57,6 @@ public function getUiDefinitions(); * If no field type is provided, returns a nested array of all field labels, * keyed by field type machine name. */ - public function getUiOptions(); + public function getOptions(); } diff --git a/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php b/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php index 682d64e..21a40f7 100644 --- a/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php +++ b/core/modules/field_ui/lib/Drupal/field_ui/FieldOverview.php @@ -177,7 +177,7 @@ public function buildForm(array $form, array &$form_state, $entity_type_id = NUL } } - $field_type_options = $this->fieldTypeManager->getUiOptions(); + $field_type_options = $this->fieldTypeManager->getOptions(); // Additional row: add new field. if ($field_type_options) {