X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FPlugin%2FDataType%2FEntityAdapter.php;fp=web%2Fcore%2Flib%2FDrupal%2FCore%2FEntity%2FPlugin%2FDataType%2FEntityAdapter.php;h=db194b5485262e06b78670c6e112cb8843ffc8e2;hp=eafb6d88bfbffc0867158100dd963ede27671817;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php b/web/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php index eafb6d88b..db194b548 100644 --- a/web/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php +++ b/web/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityAdapter.php @@ -46,7 +46,7 @@ class EntityAdapter extends TypedData implements \IteratorAggregate, ComplexData public static function createFromEntity(EntityInterface $entity) { $definition = EntityDataDefinition::create() ->setEntityTypeId($entity->getEntityTypeId()) - ->setBundles([ $entity->bundle() ]); + ->setBundles([$entity->bundle()]); $instance = new static($definition); $instance->setValue($entity); return $instance;