Feed::setEtag

public Feed::setEtag($etag)

Sets the entity tag HTTP response header, used for validating cache.

Parameters

string $etag: A string containing the entity tag HTTP response header.

Return value

\Drupal\aggregator\FeedInterface The class instance that this method is called on.

Overrides FeedInterface::setEtag

File

core/modules/aggregator/src/Entity/Feed.php, line 376

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

public function setEtag($etag) {
  $this->set('etag', $etag);
  return $this;
}
doc_Drupal
2016-10-29 09:09:57
Comments
Leave a Comment

Please login to continue.