Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / workspaces / src / EntityTypeInfo.php
index 3b91f84e519ef75a99c4462b7cfca51a7dd16a48..5495c7fa4e7c09c31db6484bc881ad7126279341 100644 (file)
@@ -70,4 +70,18 @@ class EntityTypeInfo implements ContainerInjectionInterface {
     }
   }
 
+  /**
+   * Alters field plugin definitions.
+   *
+   * @param array[] $definitions
+   *   An array of field plugin definitions.
+   *
+   * @see hook_field_info_alter()
+   */
+  public function fieldInfoAlter(&$definitions) {
+    if (isset($definitions['entity_reference'])) {
+      $definitions['entity_reference']['constraints']['EntityReferenceSupportedNewEntities'] = [];
+    }
+  }
+
 }