Skip to content

Instantly share code, notes, and snippets.

@mortenson
Created January 15, 2016 18:17
Show Gist options
  • Save mortenson/f9aa26e4ab61cada0bf0 to your computer and use it in GitHub Desktop.
Save mortenson/f9aa26e4ab61cada0bf0 to your computer and use it in GitHub Desktop.
Is it really that easy?
diff --git a/src/Plugin/Field/FieldWidget/EntityReference.php b/src/Plugin/Field/FieldWidget/EntityReference.php
index 004ab98..935c05f 100644
--- a/src/Plugin/Field/FieldWidget/EntityReference.php
+++ b/src/Plugin/Field/FieldWidget/EntityReference.php
@@ -33,7 +33,8 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
* description = @Translation("Uses entity browser to select entities."),
* multiple_values = TRUE,
* field_types = {
- * "entity_reference"
+ * "entity_reference",
+ * "image"
* }
* )
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment