Returns a new Data object containing the entities of $this and $other.
\Drupal\jsonapi\JsonApiResource\Data $a: A Data object to be merged.
\Drupal\jsonapi\JsonApiResource\Data $b: A Data object to be merged.
static A new merged Data object.
public static function merge(Data $a, Data $b) { return new static(array_merge($a->toArray(), $b->toArray())); }