diff --git a/core/modules/field/field.module b/core/modules/field/field.module index aa38650..5430b20 100644 --- a/core/modules/field/field.module +++ b/core/modules/field/field.module @@ -222,17 +222,10 @@ function field_field_info_alter(&$info) { $info['email']['class'] = '\Drupal\field\Plugin\Field\FieldType\ConfigurableEmailItem'; $info['email']['list_class'] = '\Drupal\Core\Field\ConfigFieldItemList'; $info['email']['default_widget'] = 'email_default'; - if (\Drupal::moduleHandler()->moduleExists('text')) { - $info['email']['default_formatter'] = 'text_plain'; - } - else { - $info['email']['default_formatter'] = 'email_mailto'; - } + $info['email']['default_formatter'] = 'text_plain'; // Telephone. - if (\Drupal::moduleHandler()->moduleExists('text')) { - $info['telephone']['default_formatter'] = 'text_plain'; - } + $info['telephone']['default_formatter'] = 'text_plain'; } /** @@ -240,14 +233,10 @@ function field_field_info_alter(&$info) { */ function field_field_formatter_info_alter(&$info) { // Email. - if (isset($info['text_plain'])) { - $info['text_plain']['field_types'][] = 'email'; - } + $info['text_plain']['field_types'][] = 'email'; // Telephone. - if (isset($info['text_plain'])) { - $info['text_plain']['field_types'][] = 'telephone'; - } + $info['text_plain']['field_types'][] = 'telephone'; } /**