Skip to content

Commit

Permalink
Add etag to rendered entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwagroves committed Sep 2, 2018
1 parent a97e490 commit 6327c3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,9 @@ public function createEntryElement()
$entry = $dom->createElement('atom:entry');
$entry->setAttribute('xmlns:atom', 'http://www.w3.org/2005/Atom');
$entry->setAttribute('xmlns:gd', 'http://schemas.google.com/g/2005');
if ($this->etag) {
$entry->setAttribute('gd:etag', $this->etag);
}

$category = $dom->createElement('atom:category');
$category->setAttribute('scheme', 'http://schemas.google.com/g/2005#kind');
Expand Down

0 comments on commit 6327c3d

Please sign in to comment.