diff --git a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/BooleanItem.php b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/BooleanItem.php index b0d9427..3ca73b6 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/BooleanItem.php +++ b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/BooleanItem.php @@ -16,7 +16,8 @@ * id = "boolean", * label = @Translation("Boolean"), * description = @Translation("An entity field containing a boolean value."), - * configurable = FALSE + * configurable = FALSE, + * no_ui = TRUE * ) */ class BooleanItem extends FieldItemBase { diff --git a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/DateItem.php b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/DateItem.php index 96a0791..5a8d9f3 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/DateItem.php +++ b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/DateItem.php @@ -16,7 +16,8 @@ * id = "date", * label = @Translation("Date"), * description = @Translation("An entity field containing a date value."), - * configurable = FALSE + * configurable = FALSE, + * no_ui = TRUE * ) */ class DateItem extends FieldItemBase { diff --git a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/EmailItem.php b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/EmailItem.php index e1b70b6..ca7416f 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/EmailItem.php +++ b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/EmailItem.php @@ -16,7 +16,8 @@ * @FieldType( * id = "email", * label = @Translation("E-mail"), - * description = @Translation("An entity field containing an e-mail value.") + * description = @Translation("An entity field containing an e-mail value."), + * no_ui = TRUE * ) */ class EmailItem extends ConfigFieldItemBase { diff --git a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/EntityReferenceItem.php b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/EntityReferenceItem.php index 5e37050..2cda28c 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/EntityReferenceItem.php +++ b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/EntityReferenceItem.php @@ -26,6 +26,7 @@ * label = @Translation("Entity reference"), * description = @Translation("An entity field containing an entity reference."), * configurable = FALSE, + * no_ui = TRUE, * constraints = {"ValidReference" = TRUE} * ) */ diff --git a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/FloatItem.php b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/FloatItem.php index 1dc4713..992379d 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/FloatItem.php +++ b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/FloatItem.php @@ -16,7 +16,8 @@ * id = "float", * label = @Translation("Float"), * description = @Translation("An entity field containing an float value."), - * configurable = FALSE + * configurable = FALSE, + * no_ui = TRUE * ) */ class FloatItem extends FieldItemBase { diff --git a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/IntegerItem.php b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/IntegerItem.php index e42ac21..2f06252 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/IntegerItem.php +++ b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/IntegerItem.php @@ -16,7 +16,8 @@ * id = "integer", * label = @Translation("Integer"), * description = @Translation("An entity field containing an integer value."), - * configurable = FALSE + * configurable = FALSE, + * no_ui = TRUE * ) */ class IntegerItem extends FieldItemBase { diff --git a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/LanguageItem.php b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/LanguageItem.php index 17eabdb..3a9efc4 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/LanguageItem.php +++ b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/LanguageItem.php @@ -18,6 +18,7 @@ * label = @Translation("Language"), * description = @Translation("An entity field referencing a language."), * configurable = FALSE, + * no_ui = TRUE, * constraints = { * "ComplexData" = { * "value" = {"Length" = {"max" = 12}} diff --git a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/StringItem.php b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/StringItem.php index 1e5237c..0c455c1 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/StringItem.php +++ b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/StringItem.php @@ -16,7 +16,8 @@ * id = "string", * label = @Translation("String"), * description = @Translation("An entity field containing a string value."), - * configurable = FALSE + * configurable = FALSE, + * no_ui = TRUE * ) */ class StringItem extends FieldItemBase { diff --git a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/UriItem.php b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/UriItem.php index 9c1cabd..d27ef50 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/UriItem.php +++ b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/UriItem.php @@ -16,7 +16,8 @@ * id = "uri", * label = @Translation("URI"), * description = @Translation("An entity field containing a URI."), - * configurable = FALSE + * configurable = FALSE, + * no_ui = TRUE * ) */ class UriItem extends FieldItemBase { diff --git a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/UuidItem.php b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/UuidItem.php index 2b3d6ea..ffbd050 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/field/field_type/UuidItem.php +++ b/core/lib/Drupal/Core/Entity/Plugin/field/field_type/UuidItem.php @@ -17,6 +17,7 @@ * label = @Translation("UUID"), * description = @Translation("An entity field containing a UUID."), * configurable = FALSE, + * no_ui = TRUE, * constraints = { * "ComplexData" = { * "value" = {"Length" = {"max" = 128}} diff --git a/core/modules/email/email.module b/core/modules/email/email.module index d77df82..84c3bd7 100644 --- a/core/modules/email/email.module +++ b/core/modules/email/email.module @@ -31,7 +31,8 @@ function email_help($path, $arg) { * Implements hook_field_info_alter(). */ function email_field_info_alter(&$info) { - $info['email']['default_widget'] = 'email_default'; + $info['email']['no_ui'] = FLASE; + $info['email']['default_widget'] = 'email_default'; if (\Drupal::moduleHandler()->moduleExists('text')) { $info['email']['default_formatter'] = 'text_plain'; } diff --git a/core/modules/entity_reference/entity_reference.module b/core/modules/entity_reference/entity_reference.module index 273251d..005d224 100644 --- a/core/modules/entity_reference/entity_reference.module +++ b/core/modules/entity_reference/entity_reference.module @@ -17,6 +17,7 @@ function entity_reference_field_info_alter(&$info) { // Make the entity reference field configurable. $info['entity_reference']['configurable'] = TRUE; + $info['entity_reference']['no_ui'] = FALSE; $info['entity_reference']['class'] = '\Drupal\entity_reference\Plugin\field\field_type\ConfigurableEntityReferenceItem'; $info['entity_reference']['list_class'] = '\Drupal\field\Plugin\Type\FieldType\ConfigFieldItemList'; $info['entity_reference']['settings']['target_type'] = \Drupal::moduleHandler()->moduleExists('node') ? 'node' : 'user'; diff --git a/core/modules/path/lib/Drupal/path/Plugin/field/field_type/PathItem.php b/core/modules/path/lib/Drupal/path/Plugin/field/field_type/PathItem.php index db9b4f5..b05157d 100644 --- a/core/modules/path/lib/Drupal/path/Plugin/field/field_type/PathItem.php +++ b/core/modules/path/lib/Drupal/path/Plugin/field/field_type/PathItem.php @@ -16,7 +16,8 @@ * id = "path", * label = @Translation("Path"), * description = @Translation("An entity field containing a path alias and related data."), - * configurable = FALSE + * configurable = FALSE, + * no_ui = TRUE * ) */ class PathItem extends FieldItemBase {