Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Plugin / DataType / EntityAdapter.php
index b0b94b8dbb938c1c15853da6aa38bd8278d20a28..1b54d70047065a3d14e38a3a3167900c2d843d16 100644 (file)
@@ -78,8 +78,6 @@ class EntityAdapter extends TypedData implements \IteratorAggregate, ComplexData
       throw new MissingDataException("Unable to get property $property_name as no entity has been provided.");
     }
     if (!$this->entity instanceof FieldableEntityInterface) {
-      // @todo: Add support for config entities in
-      // https://www.drupal.org/node/1818574.
       throw new \InvalidArgumentException("Unable to get unknown property $property_name.");
     }
     // This will throw an exception for unknown fields.
@@ -94,8 +92,6 @@ class EntityAdapter extends TypedData implements \IteratorAggregate, ComplexData
       throw new MissingDataException("Unable to set property $property_name as no entity has been provided.");
     }
     if (!$this->entity instanceof FieldableEntityInterface) {
-      // @todo: Add support for config entities in
-      // https://www.drupal.org/node/1818574.
       throw new \InvalidArgumentException("Unable to set unknown property $property_name.");
     }
     // This will throw an exception for unknown fields.
@@ -111,8 +107,6 @@ class EntityAdapter extends TypedData implements \IteratorAggregate, ComplexData
       throw new MissingDataException('Unable to get properties as no entity has been provided.');
     }
     if (!$this->entity instanceof FieldableEntityInterface) {
-      // @todo: Add support for config entities in
-      // https://www.drupal.org/node/1818574.
       return [];
     }
     return $this->entity->getFields($include_computed);